]> www.fi.muni.cz Git - heater.git/blobdiff - firmware/main.c
log battery voltage
[heater.git] / firmware / main.c
index 95cf70aaf02f9dca561e08d34b55bb856aefc964..a6cc1a8366350e69b728ace665e976479805a1ed 100644 (file)
@@ -563,6 +563,10 @@ int main()
                                log_byte(batt_on >> 8);
 #endif
                        }
+                       if (jiffies == 0) {
+                               log_byte(batt_on >> 8);
+                               log_byte(batt_off >> 8);
+                       }
                        log_flush();
                }
        }