From a8da9b358f46cbc40f6d5c6db73d040df6753e9b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 26 Aug 2025 22:11:33 -0400 Subject: [PATCH] Update main.c batt changes by 1/10 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index e4eb4019..2b4f44e5 100644 --- a/main.c +++ b/main.c @@ -880,7 +880,7 @@ int main(int argc, char * argv[]) { printf("charging: %f bat curr: %f bus curr: %f bat volt: %f bus volt: %f \n",charging, current[map[BAT]], current[map[BAT2]], batt, voltage[map[BAT2]]); - batt -= (batt > 3.5) ? current[map[BAT]] / 30000 : current[map[BAT]] / 3000; + batt -= (batt > 3.5) ? current[map[BAT]] / 300000 : current[map[BAT]] / 30000; if (batt < 3.6) { batt = 3.6; SafeMode = 1;