summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/test_boost.c9
-rw-r--r--apps/plugins/test_mem.c9
2 files changed, 10 insertions, 8 deletions
diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c
index cd38932b1b..e5bdbb367f 100644
--- a/apps/plugins/test_boost.c
+++ b/apps/plugins/test_boost.c
@@ -55,7 +55,8 @@ enum plugin_status plugin_start(const void* parameter)
int button = rb->button_get(false);
switch (button)
{
- case BUTTON_UP:
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ case ACTION_STD_PREV:
if (!boost)
{
rb->cpu_boost(true);
@@ -63,15 +64,15 @@ enum plugin_status plugin_start(const void* parameter)
}
break;
- case BUTTON_DOWN:
+ case ACTION_STD_NEXT:
if (boost)
{
rb->cpu_boost(false);
boost = false;
}
break;
-
- case BUTTON_LEFT:
+#endif
+ case ACTION_STD_CANCEL:
done = true;
break;
}
diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c
index b38a454c33..80995c9bfb 100644
--- a/apps/plugins/test_mem.c
+++ b/apps/plugins/test_mem.c
@@ -72,7 +72,8 @@ enum plugin_status plugin_start(const void* parameter)
int button = rb->button_get(false);
switch (button)
{
- case BUTTON_UP:
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+ case ACTION_STD_PREV:
if (!boost)
{
rb->cpu_boost(true);
@@ -80,15 +81,15 @@ enum plugin_status plugin_start(const void* parameter)
}
break;
- case BUTTON_DOWN:
+ case ACTION_STD_NEXT:
if (boost)
{
rb->cpu_boost(false);
boost = false;
}
break;
-
- case BUTTON_LEFT:
+#endif
+ case ACTION_STD_CANCEL:
done = true;
break;
}