582:ba340e00aab2 | 583:9795a16de807 |
---|---|
1228 } else if (rc == DEVPRESENT_ERROR) { | 1228 } else if (rc == DEVPRESENT_ERROR) { |
1229 Config.temp_state = 1; | 1229 Config.temp_state = 1; |
1230 } else { | 1230 } else { |
1231 Config.temp_state = 2; | 1231 Config.temp_state = 2; |
1232 } | 1232 } |
1233 usleep(10000); | |
1233 } | 1234 } |
1234 row++; | 1235 row++; |
1235 | 1236 |
1236 #ifdef HAVE_WIRINGPI_H | 1237 #ifdef HAVE_WIRINGPI_H |
1237 piLock(LOCK_LCD); | 1238 piLock(LOCK_LCD); |
1258 } else if (rc == DEVPRESENT_ERROR) { | 1259 } else if (rc == DEVPRESENT_ERROR) { |
1259 Config.hum_state = 1; | 1260 Config.hum_state = 1; |
1260 } else { | 1261 } else { |
1261 Config.hum_state = 2; | 1262 Config.hum_state = 2; |
1262 } | 1263 } |
1264 usleep(10000); | |
1263 } | 1265 } |
1264 row++; | 1266 row++; |
1265 /* | 1267 /* |
1266 * If TH(B) changed. or if 5 minutes without | 1268 * If TH(B) changed. or if 5 minutes without |
1267 * update, send the NDATA message. | 1269 * update, send the NDATA message. |