Skip to content

Commit 8f9d81b

Browse files
authored
Merge pull request #84 from colingrady/wrap_rfid_fuzzer_menu
Allow the RFID protocol menu to wrap
2 parents 23e0566 + c43ce93 commit 8f9d81b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

applications/plugins/flipfrid/scene/flipfrid_scene_entrypoint.c

+4
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,15 @@ void flipfrid_scene_entrypoint_on_event(FlipFridEvent event, FlipFridState* cont
116116
case InputKeyLeft:
117117
if(context->menu_proto_index > EM4100) {
118118
context->menu_proto_index--;
119+
} else if(context->menu_proto_index == EM4100) {
120+
context->menu_proto_index = H10301;
119121
}
120122
break;
121123
case InputKeyRight:
122124
if(context->menu_proto_index < H10301) {
123125
context->menu_proto_index++;
126+
} else if(context->menu_proto_index == H10301) {
127+
context->menu_proto_index = EM4100;
124128
}
125129
break;
126130
case InputKeyOk:

0 commit comments

Comments
 (0)