Parcourir la source

Soft Uart should reset watchdog in getchr()
https://github.com/Optiboot/optiboot/issues/116

WestfW il y a 9 ans
Parent
commit
51ee0789fd
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      optiboot/bootloaders/optiboot/optiboot.c

+ 1 - 0
optiboot/bootloaders/optiboot/optiboot.c

@@ -688,6 +688,7 @@ uint8_t getch(void) {
 #endif
 
 #ifdef SOFT_UART
+    watchdogReset();
   __asm__ __volatile__ (
     "1: sbic  %[uartPin],%[uartBit]\n"  // Wait for start edge
     "   rjmp  1b\n"