Trying to fix

Problem with multiple MQTT subscriptions #459
	https://github.com/nodemcu/nodemcu-firmware/issues/459

Fix possible wrong buffer pointer increment.
This commit is contained in:
cal 2015-06-04 11:46:20 +02:00
parent 1eea5ab1a0
commit fdcb982351

View File

@ -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;