mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-10-17 00:05:26 +02:00
HardwareSerial flush() was returning before all data was sent out through serial port. This is a problem to some RS485 libraries that depend on it to signaling. This PR solves the issue by forcing it to block flush() until all data is sent.