thermferm/thermferm.c

changeset 227
1cb55ea51f76
parent 223
14700edd2a67
child 233
5874a6480322
equal deleted inserted replaced
226:d857032c6201 227:1cb55ea51f76
796 796
797 minutes++; 797 minutes++;
798 if (minutes == 60) 798 if (minutes == 60)
799 minutes = 0; 799 minutes = 0;
800 800
801 if ((minutes == 15) || (minutes == 45)) { 801 /*
802 syslog(LOG_NOTICE, "minutes %d seconds %d", minutes, seconds); 802 * Save the configuration each half hour.
803 */
804 if ((minutes == 15) || (minutes == 45))
803 wrconfig(); 805 wrconfig();
804 }
805 } 806 }
806 } 807 }
807 808
808 #ifdef HAVE_WIRINGPI_H 809 #ifdef HAVE_WIRINGPI_H
809 /* 810 /*

mercurial