improved tecs driver M.Z.

This commit is contained in:
cvs
2004-03-09 15:18:01 +00:00
parent 7422a261ea
commit 55848218a4
23 changed files with 1372 additions and 713 deletions

View File

@@ -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) {