mirror of
https://github.com/Optiboot/optiboot.git
synced 2025-09-04 12:02:07 +03:00
Soft Uart should reset watchdog in getchr()
https://github.com/Optiboot/optiboot/issues/116
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user