mirror of
https://github.com/Ralim/IronOS.git
synced 2025-07-23 12:23:06 +02:00
21 lines
609 B
C++
21 lines
609 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::Up;
|
|
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
|
|
}
|