mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
21 lines
611 B
C++
21 lines
611 B
C++
#include "OperatingModes.h"
|
|
#include "ui_drawing.hpp"
|
|
|
|
OperatingMode showDebugMenu(const ButtonState buttons, guiContext *cxt) {
|
|
|
|
ui_draw_debug_menu(cxt->scratch_state.state1);
|
|
|
|
if (buttons == BUTTON_B_SHORT) {
|
|
cxt->transitionMode = TransitionAnimation::Down;
|
|
return OperatingMode::HomeScreen;
|
|
} else if (buttons == BUTTON_F_SHORT) {
|
|
cxt->scratch_state.state1++;
|
|
#ifdef HALL_SENSOR
|
|
cxt->scratch_state.state1 = cxt->scratch_state.state1 % 17;
|
|
#else
|
|
cxt->scratch_state.state1 = cxt->scratch_state.state1 % 16;
|
|
#endif
|
|
}
|
|
return OperatingMode::DebugMenuReadout; // Stay in debug menu
|
|
}
|