improved tecs driver M.Z.
This commit is contained in:
@@ -204,6 +204,7 @@ int Put(Set *set, int time, float value) {
|
||||
int t, try = 1;
|
||||
int size;
|
||||
float last;
|
||||
static int errcnt=0;
|
||||
|
||||
ERR_P(set);
|
||||
if (value == DATA_UNDEF) return 0;
|
||||
@@ -221,9 +222,13 @@ int Put(Set *set, int time, float value) {
|
||||
}
|
||||
if (t<0) {
|
||||
if (t<-1) {
|
||||
logfileOut(LOG_MAIN, "%s %d <? %d\n", set->set.name, time, r->endTime);
|
||||
if (errcnt<4) {
|
||||
errcnt++;
|
||||
logfileOut(LOG_MAIN, "%s %d <? %d\n", set->set.name, time, r->endTime);
|
||||
}
|
||||
ERR_MSG("back in time not possible");
|
||||
}
|
||||
if (errcnt>0) errcnt--;
|
||||
t=0;
|
||||
}
|
||||
if (t == 0) {
|
||||
|
||||
Reference in New Issue
Block a user