mirror of
https://github.com/Optiboot/optiboot.git
synced 2025-09-07 10:27:21 +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
|
#endif
|
||||||
|
|
||||||
#ifdef SOFT_UART
|
#ifdef SOFT_UART
|
||||||
|
watchdogReset();
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
"1: sbic %[uartPin],%[uartBit]\n" // Wait for start edge
|
"1: sbic %[uartPin],%[uartBit]\n" // Wait for start edge
|
||||||
" rjmp 1b\n"
|
" rjmp 1b\n"
|
||||||
|
Reference in New Issue
Block a user