From d710dc9e2c787c92a2e4579fdc3f11f0016e06aa Mon Sep 17 00:00:00 2001 From: nymea Date: Thu, 8 Aug 2019 18:07:40 +0200 Subject: [PATCH] extended long press time --- senic/devicepluginsenic.json | 2 +- senic/nuimo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/senic/devicepluginsenic.json b/senic/devicepluginsenic.json index 6dbde0a9..96791b49 100644 --- a/senic/devicepluginsenic.json +++ b/senic/devicepluginsenic.json @@ -15,7 +15,7 @@ "name": "longPressTime", "displayName": "Long press time", "type": "int", - "defaultValue": 500 + "defaultValue": 2000 } ], "vendors": [ diff --git a/senic/nuimo.h b/senic/nuimo.h index b863e6ac..0b48fe70 100644 --- a/senic/nuimo.h +++ b/senic/nuimo.h @@ -81,7 +81,7 @@ private: uint m_rotationValue; QTimer *m_longPressTimer = nullptr; - int m_longPressTime = 500; + int m_longPressTime = 2000; //default value 2 seconds void showMatrix(const QByteArray &matrix, const int &seconds); void printService(QLowEnergyService *service);