Skip to content

Commit e2f2597

Browse files
nwfrmn30
andcommitted
mqtt: correct timeout conversion to msec
Full credit to RNW for finding this one. Co-authored-by: Robert Norton-Wright <[email protected]>
1 parent 2d70bbd commit e2f2597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mqtt/mqtt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ MQTTConnection mqtt_connect(Timeout *t,
710710
do
711711
{
712712
// `remaining` is in milliseconds
713-
uint32_t remaining = (t->remaining * MS_PER_TICK) / 1000;
713+
uint32_t remaining = (t->remaining * MS_PER_TICK);
714714
ret = with_elapse_timeout(t, [&]() {
715715
return MQTT_Connect(&context->coreMQTTContext,
716716
&connectInfo,

0 commit comments

Comments
 (0)