Skip to content

Commit

Permalink
Fixed misleading-indentation in zuno_analog_read.c
Browse files Browse the repository at this point in the history
  • Loading branch information
p0lyg0n1 committed Sep 19, 2024
1 parent d04a72d commit efdb5ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hardware/arduino/zunoG2/cores/LLCore/zuno_analog_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit efdb5ef

Please sign in to comment.