From 06687e8d2b2a4b7a73e67ed9ab13c5e92f490338 Mon Sep 17 00:00:00 2001 From: Patrick Lapointe Date: Sun, 9 Feb 2020 14:25:11 -0500 Subject: [PATCH] Correct the call of the delayed execution callback --- src/EspMQTTClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EspMQTTClient.cpp b/src/EspMQTTClient.cpp index 364a222..51c5210 100644 --- a/src/EspMQTTClient.cpp +++ b/src/EspMQTTClient.cpp @@ -265,7 +265,7 @@ void EspMQTTClient::loop() { if (mDelayedExecutionList[i].targetMillis <= currentMillis) { - (*mDelayedExecutionList[i].callback)(); + mDelayedExecutionList[i].callback(); for(byte j = i ; j < mDelayedExecutionListSize-1 ; j++) mDelayedExecutionList[j] = mDelayedExecutionList[j + 1]; mDelayedExecutionListSize--;