From f4c8ca64c2029d6c0d28d9e0bd3270e9c650c20c Mon Sep 17 00:00:00 2001 From: Dimitrios Stoupis <dimitris.apple@gmail.com> Date: Mon, 15 Apr 2019 18:40:10 +0000 Subject: [PATCH] Update EventActionService.cpp --- src/Services/EventActionService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/EventActionService.cpp b/src/Services/EventActionService.cpp index 7edb1c6b..aafde5f3 100644 --- a/src/Services/EventActionService.cpp +++ b/src/Services/EventActionService.cpp @@ -77,7 +77,7 @@ void EventActionService::enableEventActionDefinitions(Message& message) { // TC[19,4] message.assertTC(19, 4); uint16_t numberOfEventActionDefinitions = message.readUint16(); - if (numberOfEventActionDefinitions != 0) { + if (numberOfEventActionDefinitions) { for (uint16_t i = 0; i < numberOfEventActionDefinitions; i++) { message.skipBytes(2); // Skips reading the application ID uint16_t eventDefinitionID = message.readEnum16(); @@ -110,7 +110,7 @@ void EventActionService::disableEventActionDefinitions(Message& message) { // TC[19,5] message.assertTC(19, 5); uint16_t numberOfEventActionDefinitions = message.readUint16(); - if (numberOfEventActionDefinitions != 0) { + if (numberOfEventActionDefinitions) { for (uint16_t i = 0; i < numberOfEventActionDefinitions; i++) { message.skipBytes(2); // Skips reading applicationID uint16_t eventDefinitionID = message.readEnum16(); -- GitLab