There has been a continuous problem that the counter:CheckStatus function

called from the status task messed up count processing. This has now been
resolved in this way:
- A new function ReadStatus and  a lastStatus filed have been added
  to the countable interface.
- CountTaskFunc updates the lastStatus field.
- ReadStatus just returns that field.
- ReadStatus is now being called by the status task.
This commit is contained in:
2016-03-15 11:24:50 +01:00
parent 18816067db
commit 1b2022a5e9
4 changed files with 17 additions and 3 deletions

View File

@ -62,11 +62,13 @@
typedef struct {
int ID;
int running;
int lastStatus;
int (*Halt)(void *self);
void (*SetCountParameters)(void *self, float fPreset,
CounterMode eMode);
int (*StartCount)(void *self, SConnection *pCon);
int (*CheckCountStatus)(void *self, SConnection *pCon);
int (*ReadStatus)(void *self, SConnection *pCon);
int (*Pause)(void *self, SConnection *pCon);
int (*Continue)(void *self, SConnection *pCon);
int (*TransferData)(void *self, SConnection *pCon);