File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -893,14 +893,21 @@ void beginFuelGauge()
893
893
// Check to see if we are dangerously low
894
894
if ((batteryLevelPercent < 5 ) && (isCharging () == false )) // 5% and not charging
895
895
{
896
- systemPrintln (" Battery too low. Please charge. Shutting down..." );
896
+ // Currently only the Torch uses the BQ40Z50 and it does not have software shutdown
897
+ // So throw a warning, but don't do anything else.
898
+ systemPrintln (" Battery too low. Please charge." );
897
899
898
- if (online. display == true )
899
- displayMessage ( " Charge Battery " , 0 );
900
+ // If future platforms use the BQ40Z50 and have software shutdown, allow it
901
+ // but avoid blocking Torch with the infinite loop of powerDown().
900
902
901
- delay ( 2000 );
903
+ // systemPrintln("Battery too low. Please charge. Shutting down..." );
902
904
903
- powerDown (false ); // Don't display 'Shutting Down'
905
+ // if (online.display == true)
906
+ // displayMessage("Charge Battery", 0);
907
+
908
+ // delay(2000);
909
+
910
+ // powerDown(false); // Don't display 'Shutting Down'
904
911
}
905
912
}
906
913
#endif // COMPILE_BQ40Z50
You can’t perform that action at this time.
0 commit comments