Skip to content

Commit

Permalink
Update 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gissio committed Jul 10, 2023
1 parent 9fc96f5 commit 9e1a8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform.io/src/devices/fs2011/fs2011_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ float getBatteryVoltage(void)

bool isBatteryCharging(void)
{
if (gpio_get(PWR_CHRG_PORT, PWR_CHRG_PIN))
if (!gpio_get(PWR_CHRG_PORT, PWR_CHRG_PIN))
return true;

if (battery.voltage < BATTERY_EXTERNAL_POWER_SUPPLY_VOLTAGE_THRESHOLD)
Expand Down

0 comments on commit 9e1a8f7

Please sign in to comment.