8000 Fix SerialUART flush (#215) · tymeorama/arduino-pico@2747681 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2747681

Browse files
Fix SerialUART flush (earlephilhower#215)
Serial1.flush/Serial2.flush was not waiting for the proper FIFO to clear. Use the proper call from the Pico SDK. Thanks to Peter Remias for noting it.
1 parent b02b9c4 commit 2747681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/rp2040/SerialUART.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void SerialUART::flush() {
161161
if (!_running || !m) {
162162
return;
163163
}
164-
uart_default_tx_wait_blocking();
164+
uart_tx_wait_blocking(_uart);
165165
}
166166

167167
size_t SerialUART::write(uint8_t c) {

0 commit comments

Comments
 (0)
0