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:
parent
1eea5ab1a0
commit
fdcb982351
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue