summaryrefslogtreecommitdiff
path: root/apps/plugins/cube.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/cube.c')
-rw-r--r--apps/plugins/cube.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 6d0e14f8f0..9540023029 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -649,7 +649,11 @@ enum plugin_status plugin_start(const void* parameter)
649#endif 649#endif
650 650
651 int button; 651 int button;
652#if defined(CUBE_MODE_PRE) || \
653 defined(CUBE_PAUSE_PRE) || \
654 defined(CUBE_HIGHSPEED_PRE)
652 int lastbutton = BUTTON_NONE; 655 int lastbutton = BUTTON_NONE;
656#endif
653 int curr = 0; 657 int curr = 0;
654 bool highspeed = false; 658 bool highspeed = false;
655 bool paused = false; 659 bool paused = false;
@@ -855,8 +859,12 @@ enum plugin_status plugin_start(const void* parameter)
855 exit_on_usb(button); 859 exit_on_usb(button);
856 break; 860 break;
857 } 861 }
862#if defined(CUBE_MODE_PRE) || \
863 defined(CUBE_PAUSE_PRE) || \
864 defined(CUBE_HIGHSPEED_PRE)
858 if (button != BUTTON_NONE) 865 if (button != BUTTON_NONE)
859 lastbutton = button; 866 lastbutton = button;
867#endif
860 } 868 }
861 869
862 return PLUGIN_OK; 870 return PLUGIN_OK;