diff --git a/src/main.cpp b/src/main.cpp index e0c1dbc1..78c1bee1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -250,6 +250,18 @@ class ButtonThread : public OSThread disablePin(); #endif } + + static void userButtonPressedLongStart() + { + DEBUG_MSG("Long press start!\n"); + longPressTime = millis(); + } + + static void userButtonPressedLongStop() + { + DEBUG_MSG("Long press stop!\n"); + longPressTime = 0; + } }; static Periodic *ledPeriodic;