Skip to content

Commit

Permalink
Correct the call of the delayed execution callback
Browse files Browse the repository at this point in the history
  • Loading branch information
plapointe6 committed Feb 9, 2020
1 parent f0cb4dc commit 06687e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EspMQTTClient.cpp
Expand Up @@ -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--;
Expand Down

0 comments on commit 06687e8

Please sign in to comment.