Skip to content

Commit

Permalink
yield for zero ms
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Dec 9, 2019
1 parent cc2f3ca commit 5d6d29e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=MQTT
version=2.4.6
version=2.4.7
author=Joel Gaehwiler <[email protected]>
maintainer=Joel Gaehwiler <[email protected]>
sentence=MQTT library for Arduino
Expand Down
2 changes: 1 addition & 1 deletion src/MQTTClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ inline lwmqtt_err_t lwmqtt_arduino_network_read(void *ref, uint8_t *buffer, size
}

// wait/unblock for some time (RTOS based boards may otherwise fail since the wifi task cannot provide the data)
delay(1);
delay(0);

// otherwise check status
if (!n->client->connected()) {
Expand Down

0 comments on commit 5d6d29e

Please sign in to comment.