summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-10-25 16:57:29 +0300
committerRiku Isokoski <riksu9000@gmail.com>2021-10-25 16:57:29 +0300
commit351c60a13167c05dfdbb0516f84077a4cd6adeec (patch)
treec4333ce60c6889411f9af04b544cd3ac4c4eef58 /src/systemtask/SystemTask.h
parentb19a2a760b74f27c8d3db262bf43437f722f74bd (diff)
Return button action instead of pushing messages
Diffstat (limited to 'src/systemtask/SystemTask.h')
-rw-r--r--src/systemtask/SystemTask.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h
index 9967f75c..d6045e9c 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -21,6 +21,7 @@
#include "components/fs/FS.h"
#include "touchhandler/TouchHandler.h"
#include "buttonhandler/ButtonHandler.h"
+#include "buttonhandler/ButtonActions.h"
#ifdef PINETIME_IS_RECOVERY
#include "displayapp/DisplayAppRecovery.h"
@@ -138,6 +139,7 @@ namespace Pinetime {
TimerHandle_t measureBatteryTimer;
bool doNotGoToSleep = false;
+ void HandleButtonAction(Controllers::ButtonActions action);
void GoToRunning();
void UpdateMotion();
bool stepCounterMustBeReset = false;