- Currently disabled attempts at logging commands
- Added a warning for excessive data rates on monitors - Added statistics to devser and thus to scriptcontext - Added byte concatenation to dynstring - Added aborting for reflection generation to fourmess.c - Added data checksum testing to hipadaba, use for update tests - Fixed interrupt discovery in network.c, caused invalid interrupt codes which in turn confused sicscron which had to be fixed too. - Renamed ubcalc into ubcalcint in order to reclaim the ubcalc for Jurg - Added an a3offset to tasub in order to fix what I perceive an IS problem - Added support for the newer version of the Siemens SPS, the S7 - Added a not yet fully working sinqhttpopt driver which talks to http HM without libghttp SKIPPED: psi/delcam.c psi/make_gen psi/psi.c psi/sinq.c psi/sinq.h psi/sinqhttpopt.c psi/slsvme.c psi/spss7.c
This commit is contained in:
11
polldriv.c
11
polldriv.c
@ -28,20 +28,17 @@ static int timeDue(struct __POLLDRIV *self, time_t now, SConnection * pCon)
|
||||
/*------------------ HDB Driver -----------------------------------------*/
|
||||
static int pollHdb(struct __POLLDRIV *self, SConnection * pCon)
|
||||
{
|
||||
hdbValue old, newVal;
|
||||
hdbValue newVal;
|
||||
pHdb node = NULL;
|
||||
|
||||
memset(&old, 0, sizeof(hdbValue));
|
||||
memset(&newVal, 0, sizeof(hdbValue));
|
||||
node = (pHdb) self->objPointer;
|
||||
|
||||
assert(node != NULL);
|
||||
old = node->value;
|
||||
|
||||
self->nextPoll = time(NULL) + self->pollIntervall;
|
||||
if (GetHipadabaPar(node, &newVal, pCon) == 1) {
|
||||
if (!compareHdbValue(old, newVal)) {
|
||||
UpdateHipadabaPar(node, newVal, pCon);
|
||||
}
|
||||
ReleaseHdbValue(&newVal);
|
||||
ReleaseHdbValue(&newVal);
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user