diff --git a/source/core_mqtt.c b/source/core_mqtt.c index 434a1dec8..4226a7372 100644 --- a/source/core_mqtt.c +++ b/source/core_mqtt.c @@ -1035,9 +1035,9 @@ static MQTTStatus_t handleKeepAlive( MQTTContext_t * pContext ) else if( ( PACKET_RX_TIMEOUT_MS != 0U ) && ( calculateElapsedTime( now, pContext->lastPacketRxTime ) >= PACKET_RX_TIMEOUT_MS ) ) { status = MQTT_Ping( pContext ); - } else + } + else { - /* NOP */ } }