]> www.fi.muni.cz Git - heater.git/commitdiff
log battery voltage
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 21 Dec 2014 21:41:00 +0000 (22:41 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 21 Dec 2014 21:41:00 +0000 (22:41 +0100)
firmware/main.c

index 95cf70aaf02f9dca561e08d34b55bb856aefc964..a6cc1a8366350e69b728ace665e976479805a1ed 100644 (file)
@@ -563,6 +563,10 @@ int main()
                                log_byte(batt_on >> 8);
 #endif
                        }
                                log_byte(batt_on >> 8);
 #endif
                        }
+                       if (jiffies == 0) {
+                               log_byte(batt_on >> 8);
+                               log_byte(batt_off >> 8);
+                       }
                        log_flush();
                }
        }
                        log_flush();
                }
        }