thermferm/thermferm.c

changeset 200
a215ddaabbe2
parent 199
3f5d277a69e3
child 204
9a14d6b2de7f
equal deleted inserted replaced
199:3f5d277a69e3 200:a215ddaabbe2
496 lcd_buf_write(row++, "Cooler %s ", unit->cooler_state ? "On ":"Off"); 496 lcd_buf_write(row++, "Cooler %s ", unit->cooler_state ? "On ":"Off");
497 } 497 }
498 #endif 498 #endif
499 } 499 }
500 500
501 #ifdef HAVE_WIRINGPI_H
502 lcd_buf_show();
503 #endif
504
505 piddelay++; 501 piddelay++;
506 if (piddelay == 15) { 502 if (piddelay == 15) {
507 piddelay = 0; 503 piddelay = 0;
508 504
509 for (unit = Config.units; unit; unit = unit->next) { 505 for (unit = Config.units; unit; unit = unit->next) {
622 syslog(LOG_NOTICE, "minutes %d seconds %d", minutes, seconds); 618 syslog(LOG_NOTICE, "minutes %d seconds %d", minutes, seconds);
623 wrconfig(); 619 wrconfig();
624 } 620 }
625 } 621 }
626 } 622 }
623
624 #ifdef HAVE_WIRINGPI_H
625 // FIXME: not in editmode.
626 lcd_buf_show();
627 #endif
628
627 usleep(100000); 629 usleep(100000);
628 630
629 } while (run); 631 } while (run);
630 632
631 /* 633 /*

mercurial