- 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:
@ -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;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user