watchdog reset cleanup

This commit is contained in:
Klaus K Wilting committed 2018-04-27 23:44:29 +02:00
1 parent 9916d8f6da
commit ad44687392
2 files changed
+6 -5

No files matched your search

+1 -2
View File
@@ -286,8 +286,7 @@ void bt_loop(void * pvParameters)
while(1) while(1)
{ {
vTaskDelay(10/portTICK_PERIOD_MS); vTaskDelay(10/portTICK_PERIOD_MS); // reset watchdog
yield();
} }
end: end:
+5 -3
View File
@@ -167,11 +167,9 @@ void lorawan_loop(void * pvParameters) {
LMIC_reset(); // Reset the MAC state. Session and pending data transfers will be discarded. LMIC_reset(); // Reset the MAC state. Session and pending data transfers will be discarded.
}; };
vTaskDelay(1000/portTICK_PERIOD_MS); vTaskDelay(1000/portTICK_PERIOD_MS);
yield();
} }
*/ */
vTaskDelay(10/portTICK_PERIOD_MS); vTaskDelay(10/portTICK_PERIOD_MS); // reset watchdog
yield();
} }
} }
@@ -233,6 +231,8 @@ void sniffer_loop(void * pvParameters) {
channel = (channel % WIFI_CHANNEL_MAX) + 1; channel = (channel % WIFI_CHANNEL_MAX) + 1;
wifi_sniffer_set_channel(channel); wifi_sniffer_set_channel(channel);
ESP_LOGD(TAG, "Wifi set channel %d", channel); ESP_LOGD(TAG, "Wifi set channel %d", channel);
vTaskDelay(10/portTICK_PERIOD_MS); // reset watchdog
} }
} // end of infinite wifi channel rotation loop } // end of infinite wifi channel rotation loop
@@ -627,6 +627,8 @@ void loop() {
reset_salt(); // get new salt for salting hashes reset_salt(); // get new salt for salting hashes
} }
vTaskDelay(10/portTICK_PERIOD_MS); // reset watchdog
} }
/* end Aruino LOOP ------------------------------------------------------------ */ /* end Aruino LOOP ------------------------------------------------------------ */