summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r--apps/plugins/flipit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index a837b1a64e..a61839cc0c 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -615,7 +615,10 @@ static bool flipit_loop(void)
615{ 615{
616 int i; 616 int i;
617 int button; 617 int button;
618#if defined(FLIPIT_SOLVE_PRE) || defined(FLIPIT_STEP_PRE) || \
619 defined(FLIPIT_TOGGLE_PRE) || defined(FLIPIT_UP_PRE)
618 int lastbutton = BUTTON_NONE; 620 int lastbutton = BUTTON_NONE;
621#endif
619 622
620 flipit_init(); 623 flipit_init();
621 while(true) { 624 while(true) {
@@ -729,8 +732,11 @@ static bool flipit_loop(void)
729 return PLUGIN_USB_CONNECTED; 732 return PLUGIN_USB_CONNECTED;
730 break; 733 break;
731 } 734 }
735#if defined(FLIPIT_SOLVE_PRE) || defined(FLIPIT_STEP_PRE) || \
736 defined(FLIPIT_TOGGLE_PRE) || defined(FLIPIT_UP_PRE)
732 if (button != BUTTON_NONE) 737 if (button != BUTTON_NONE)
733 lastbutton = button; 738 lastbutton = button;
739#endif
734 } 740 }
735} 741}
736 742