From c427c8abf95daa8ce1e7c930a133088ca819347c Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 28 Nov 2020 08:55:56 +0800 Subject: [PATCH] oops - fix my crummy merge --- src/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;