Skip to content

Commit 13ee6db

Browse files
Update RS485_halfduplex.ino
1 parent aca2de0 commit 13ee6db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/RS485_halfduplex/RS485_halfduplex.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup() {
3737
// - Half Duplex
3838
// - No A/B and Y/Z 120 Ohm termination enabled
3939
// Enable the RS485/RS232 system
40-
MachineControl_RS485Comm.begin(115200, 0, 500); // Specify baudrate, and preamble and postamble times for RS485 communication
40+
MachineControl_RS485Comm.begin(115200, SERIAL_8N1, 0, 500); // Specify baudrate, serial config and preamble and postamble times for RS485 communication
4141

4242
// Start in receive mode
4343
MachineControl_RS485Comm.receive();
@@ -65,4 +65,4 @@ void loop() {
6565

6666
sendNow = millis() + sendInterval;
6767
}
68-
}
68+
}

0 commit comments

Comments
 (0)