From fdcb9823518826cc82f57002f7d47cb01983e6ca Mon Sep 17 00:00:00 2001 From: cal Date: Thu, 4 Jun 2015 11:46:20 +0200 Subject: [PATCH] Trying to fix Problem with multiple MQTT subscriptions #459 https://github.com/nodemcu/nodemcu-firmware/issues/459 Fix possible wrong buffer pointer increment. --- app/modules/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/mqtt.c b/app/modules/mqtt.c index c7afd0ff..0cd2398b 100644 --- a/app/modules/mqtt.c +++ b/app/modules/mqtt.c @@ -374,7 +374,7 @@ READPACKET: if(mud->mqtt_state.message_length < mud->mqtt_state.message_length_read) { length -= mud->mqtt_state.message_length; - pdata += mud->mqtt_state.message_length; + in_buffer += mud->mqtt_state.message_length; NODE_DBG("Get another published message\r\n"); goto READPACKET;