Commit 59f341c
committed
Fix Serial1.end() hang on nRF52: pull up RX before UART shutdown
When GPS powers down, its TX line drops LOW, putting the nRF52 UARTE
RX in a continuous break condition. Uart::end() waits for RXTO (receiver
timeout) which only fires after the receiver is idle for one character
period — never happening during a break. Result: infinite hang.
Fix: pull up the MCU's RX pin (PIN_GPS_TX = "toward CPU") before calling
Serial1.end(), ensuring the line is in idle state so RXTO fires promptly.1 parent b9eb9a3 commit 59f341c
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
586 | 590 | | |
587 | 591 | | |
588 | 592 | | |
| |||
706 | 710 | | |
707 | 711 | | |
708 | 712 | | |
| 713 | + | |
| 714 | + | |
709 | 715 | | |
710 | 716 | | |
711 | 717 | | |
| |||
0 commit comments