Browse Source

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

WestfW 9 years ago
parent
commit
51ee0789fd
1 changed files with 1 additions and 0 deletions
  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"