From efdb5ef5305fbcd587f9ebac35621a51e1a2fe98 Mon Sep 17 00:00:00 2001 From: Alexander Polyakov Date: Thu, 19 Sep 2024 18:21:57 +0300 Subject: [PATCH] Fixed misleading-indentation in zuno_analog_read.c --- hardware/arduino/zunoG2/cores/LLCore/zuno_analog_read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/arduino/zunoG2/cores/LLCore/zuno_analog_read.c b/hardware/arduino/zunoG2/cores/LLCore/zuno_analog_read.c index 5c218209..a1267f05 100644 --- a/hardware/arduino/zunoG2/cores/LLCore/zuno_analog_read.c +++ b/hardware/arduino/zunoG2/cores/LLCore/zuno_analog_read.c @@ -17,9 +17,9 @@ uint8_t defaultBatteryHandler(void) { res *= 5000; res >>= 12; if(res >= BATTERY_HIGH) - return 100; - if(res <= BATTERY_LOW) - return 0; + return 100; + if(res <= BATTERY_LOW) + return 0; res -= BATTERY_LOW; res *= 100; return res / (BATTERY_HIGH - BATTERY_LOW);