summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a15b93c..d4b9fd9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -56,7 +56,12 @@ void setup()
void loop()
{
uint16_t pressDuration = de::uvok::badge::gpio_poll();
- if (pressDuration > PRESS_TIME_BLE_ADV)
+ if (pressDuration < 64)
+ {
+ if (pressDuration == NEXT_KEY) de::uvok::badge::display_next();
+ if (pressDuration == PRV_KEY) de::uvok::badge::display_prev();
+ }
+ else if (pressDuration > PRESS_TIME_BLE_ADV)
{
if (!pAdvertising->isAdvertising())
{