From f81df8c2f99254a643ead6fd5f4471d888ba17bb Mon Sep 17 00:00:00 2001 From: Kyle Freed Date: Wed, 21 Feb 2024 14:34:36 -0600 Subject: [PATCH] Fix keepalive timer Signed-off-by: Kyle Freed --- MQTTClient-C/src/MQTTClient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MQTTClient-C/src/MQTTClient.c b/MQTTClient-C/src/MQTTClient.c index 903f3c14..7a15e318 100755 --- a/MQTTClient-C/src/MQTTClient.c +++ b/MQTTClient-C/src/MQTTClient.c @@ -241,7 +241,7 @@ int keepalive(MQTTClient* c) if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTTCLIENT_SUCCESS) { c->ping_outstanding = 1; - TimerCountdownMS(&c->pingresp_timer, c->keepAliveInterval); + TimerCountdown(&c->pingresp_timer, c->keepAliveInterval); } } }