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
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ READPACKET:
if(mud->mqtt_state.message_length < mud->mqtt_state.message_length_read) if(mud->mqtt_state.message_length < mud->mqtt_state.message_length_read)
{ {
length -= mud->mqtt_state.message_length; 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"); NODE_DBG("Get another published message\r\n");
goto READPACKET; goto READPACKET;