From cba1b50d5359b6b983c179b6ff6a59aee39d5706 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sun, 21 Dec 2014 22:41:00 +0100 Subject: [PATCH] log battery voltage --- firmware/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/main.c b/firmware/main.c index 95cf70a..a6cc1a8 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -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(); } } -- 2.43.5