Skip to content

Commit 28a1ef6

Browse files
econealelucasssvaz
andauthored
Update libraries/ESP32/examples/Serial/RS485_Echo_Demo/RS485_Echo_Demo.ino
Co-authored-by: Lucas Saavedra Vaz <[email protected]>
1 parent 57061e6 commit 28a1ef6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP32/examples/Serial/RS485_Echo_Demo/RS485_Echo_Demo.ino

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ void setup() {
2626
while(!Serial) { delay(10); }
2727

2828
RS485.begin(9600, SERIAL_8N1, RS485_RX_PIN, RS485_TX_PIN);
29+
while(!RS485) { delay(10); }
2930
if(!RS485.setPins(-1, -1, -1, RS485_RTS_PIN)){
3031
Serial.print("Failed to set RS485 pins");
3132
}

0 commit comments

Comments
 (0)