mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-12-26 23:29:21 +00:00
added missing debug mode for battery mode
This commit is contained in:
parent
4d19ede8b3
commit
8b4c50ed30
@ -515,6 +515,11 @@ void doDebugging(uint32_t lastFps)
|
||||
sprintf(debugBuf, "%llX", g_cpu->cycles);
|
||||
g_display->debugMsg(debugBuf);
|
||||
break;
|
||||
case D_SHOWBATTERY:
|
||||
sprintf(debugBuf, "B: %d %d%% ", currentBatteryReading,
|
||||
map(currentBatteryReading, BATTERYMIN, BATTERYMAX, 0, 100));
|
||||
g_display->debugMsg(debugBuf);
|
||||
break;
|
||||
case D_SHOWTIME:
|
||||
sprintf(debugBuf, "%.2d:%.2d:%.2d", hour(), minute(), second());
|
||||
g_display->debugMsg(debugBuf);
|
||||
|
Loading…
Reference in New Issue
Block a user