- Introduced a new trace facility

- Fixed performance problems in many protocol drivers.


SKIPPED:
	psi/julprot.c
	psi/phytron.c
	psi/pmacprot.c
	psi/polterwrite.c
	psi/spss7.c
This commit is contained in:
koennecke
2011-06-29 07:53:54 +00:00
parent 9abb3584f1
commit 3ee1865f9b
31 changed files with 868 additions and 35 deletions

View File

@ -255,6 +255,7 @@ static int CheckCountStatus(void *pData, SConnection * pCon)
self->badStatusCount = 0; /* clear: we managed to read OK */
if (self->iCallbackCounter > 20) {
InvokeCallBack(self->pCall, MONITOR, &sMon);
tracePar(self->name,"control:%f", fControl);
self->iCallbackCounter = 0;
} else {
self->iCallbackCounter++;
@ -521,11 +522,13 @@ static int SetCounterModeImpl(pCounter self, CounterMode eNew)
for (i = 0; i < self->iExponent; i++) {
self->pDriv->fPreset /= 10.;
}
tracePar(self->name,"mode:timer");
}
if (eNew == ePreset) {
for (i = 0; i < self->iExponent; i++) {
self->pDriv->fPreset *= 10.;
}
tracePar(self->name,"mode:monitor");
}
self->pDriv->eMode = eNew;
return 1;
@ -578,6 +581,8 @@ static int SetCounterPresetImpl(pCounter self, float fVal)
fVal = nintf(fVal);
}
self->pDriv->fPreset = fVal;
tracePar(self->name,"preset:%f", fVal);
return 1;
}
/*------------------------------------------------------------------------*/