From a250a28cc05fb2007bbb91df0a45e0a9cb679a85 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Tue, 5 Apr 2022 12:47:45 +0200 Subject: [PATCH] reboot on error --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 500b872..71becc4 100644 --- a/main.c +++ b/main.c @@ -207,7 +207,7 @@ int main() else { printf("--MQTT Connected ERROR: %ld\r\n", mqtt_rc); - //while(1); //Reboot the board + while(1); //Reboot the board } // Subscribe to all topics @@ -222,8 +222,6 @@ int main() uint32_t timer_blink_outs = millis(); uint32_t timer_send_uptime = millis(); - OCR3B = 127; - #if PLC_MQTT_ENABLED mqtt_pub(&mqtt_client, "/Filamentanlage/04_Messmodul/state/Luefter", "aus", 3); #endif @@ -299,6 +297,7 @@ void timer3_init(void) TCCR3A |= (1<