bmsd/ispindels.c

changeset 572
7a03181d29a3
parent 568
6f3c24e21deb
child 578
e75ce5bbda73
equal deleted inserted replaced
571:468377312726 572:7a03181d29a3
111 } 111 }
112 } else { 112 } else {
113 syslog(LOG_NOTICE, "Unknown keyword `%s' from `%s'", key, node); 113 syslog(LOG_NOTICE, "Unknown keyword `%s' from `%s'", key, node);
114 } 114 }
115 115
116 if (ispindel->battery < LOWBATT)
117 ispindel->alarm |= ALARM_FLAG_BATTERY;
118 else
119 ispindel->alarm &= ~ALARM_FLAG_BATTERY;
120
116 ispindel_dump(ispindel); 121 ispindel_dump(ispindel);
117 122
118 if (new_ispindel || do_update) { 123 if (new_ispindel || do_update) {
119 t = xstrcpy((char *)"mbv1.0/ispindels/NBIRTH/"); 124 t = xstrcpy((char *)"mbv1.0/ispindels/NBIRTH/");
120 t = xstrcat(t, node); 125 t = xstrcat(t, node);

mercurial