1
0
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:
WestfW
2015-05-25 16:38:10 -07:00
parent 08499e09b9
commit 51ee0789fd

View File

@@ -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"