Skip to content

Commit ca9451a

Browse files
committed
Fixed emoncms task after wathcdog triggerig
Added a delay to the waiting loop so that the watschdog timer will be reset when waiting on pub-messages
1 parent e44a3ca commit ca9451a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/emoncms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void emoncms_post_task(void *arg)
117117
{
118118
// try again as long as a message from
119119
pub_msg = ts_serial_pubmsg(100);
120+
vTaskDelay(100/portTICK_PERIOD_MS);
120121
}
121122

122123
//esp_netif_ip_info_t ip_info;

0 commit comments

Comments
 (0)