From 5c97828655ae548d7633267b4ff7d417c60e2a4e Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 9 Apr 2020 12:11:39 +0200 Subject: [PATCH] Trigger longpress already on hold again, not just on released --- philipshue/integrationpluginphilipshue.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/philipshue/integrationpluginphilipshue.cpp b/philipshue/integrationpluginphilipshue.cpp index abb8e1ae..1b2fe8ab 100644 --- a/philipshue/integrationpluginphilipshue.cpp +++ b/philipshue/integrationpluginphilipshue.cpp @@ -1035,7 +1035,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode) param = Param(remotePressedEventButtonNameParamTypeId, "ON"); id = remotePressedEventTypeId; break; - case 1003: + case 1001: param = Param(remoteLongPressedEventButtonNameParamTypeId, "ON"); id = remoteLongPressedEventTypeId; break; @@ -1043,7 +1043,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode) param = Param(remotePressedEventButtonNameParamTypeId, "DIM UP"); id = remotePressedEventTypeId; break; - case 2003: + case 2001: param = Param(remoteLongPressedEventButtonNameParamTypeId, "DIM UP"); id = remoteLongPressedEventTypeId; break; @@ -1051,7 +1051,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode) param = Param(remotePressedEventButtonNameParamTypeId, "DIM DOWN"); id = remotePressedEventTypeId; break; - case 3003: + case 3001: param = Param(remoteLongPressedEventButtonNameParamTypeId, "DIM DOWN"); id = remoteLongPressedEventTypeId; break; @@ -1059,7 +1059,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode) param = Param(remotePressedEventButtonNameParamTypeId, "OFF"); id = remotePressedEventTypeId; break; - case 4003: + case 4001: param = Param(remoteLongPressedEventButtonNameParamTypeId, "OFF"); id = remoteLongPressedEventTypeId; break; @@ -1094,7 +1094,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode) case 1002: id = smartButtonPressedEventTypeId; break; - case 1003: + case 1001: id = smartButtonLongPressedEventTypeId; break; default: