- changed select to uselect

- some fixes in tecs.c
This commit is contained in:
zolliker
2008-10-16 14:33:25 +00:00
parent 5cb057f645
commit d239d98edb
12 changed files with 50 additions and 17 deletions

View File

@@ -633,6 +633,7 @@ again:
loop=1;
initMaxPower=1;
resist=10;
nScan=0;
} else {
InitSensor(&sensC);
InitSensor(&sensD);
@@ -1831,7 +1832,7 @@ int Settings(void) {
if (k>4) k=kk;
i++;
}
k = kk + nScan + 1;
/* k = kk + nScan + 1; */
if (k > 4) k = 5;
}
maxfld=k-1;
@@ -2337,7 +2338,7 @@ int PeriodicTask(void) {
ERR_P(LscCmd(ser, "ALMRST"));
}
} else if (loop == 1) {
if (!relay0) logfileOut(LOG_MAIN, "Relay is on!\n");
if (relay && !relay0) logfileOut(LOG_MAIN, "Relay is on!\n");
alarmStatus[0]='\0';
}
@@ -2630,7 +2631,6 @@ int DeviceHdl(int mode, void *base, int fd) {
t=strchr(device, '/');
if (t==NULL) {
if (0==strcmp(device, "0") || 0==strcasecmp(device, "auto")) {
nScan=0;
ERR_I(ConfigByCode(0));
ERR_I(ConfigByCode(1));
} else {