added missing debug mode for battery mode

This commit is contained in:
Jorj Bauer 2020-12-28 23:36:17 -05:00
parent 4d19ede8b3
commit 8b4c50ed30

View File

@ -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);