Skip to content

Commit 2420628

Browse files
committed
Undo accidental removal of function key check for radio off shortcut
1 parent cb00f1f commit 2420628

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

main/menu/home.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ void menu_home(void) {
152152
if (event.args_navigation.state) {
153153
switch (event.args_navigation.key) {
154154
case BSP_INPUT_NAVIGATION_KEY_F1:
155-
bsp_power_set_radio_state(BSP_POWER_RADIO_STATE_OFF);
155+
if (event.args_navigation.modifiers & BSP_INPUT_MODIFIER_FUNCTION) {
156+
bsp_power_set_radio_state(BSP_POWER_RADIO_STATE_OFF);
157+
}
156158
break;
157159
case BSP_INPUT_NAVIGATION_KEY_F2:
158160
if (event.args_navigation.modifiers & BSP_INPUT_MODIFIER_FUNCTION) {

0 commit comments

Comments
 (0)