light error lamp when not ready

This commit is contained in:
2022-04-02 16:46:40 +02:00
parent 93de6e725c
commit a33902424e

4
main.c
View File

@@ -107,6 +107,8 @@ int main()
printf("moin!\n\r");
set_Output(LED_FEHLER, ON);
timer3_init(); //abzug
timer4_init(); //taenzer
timer5_init(); //spule
@@ -163,6 +165,8 @@ int main()
uint32_t timer_send_info = millis();
uint32_t timer_modbus_poll = millis();
set_Output(LED_FEHLER, OFF);
while(1)
{
wdt_reset(); // WDT reset at least every sec