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 95cf70a..a6cc1a8 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();
                }
        }