Skip to content

Commit aca2de0

Browse files
Update RS485_fullduplex.ino
1 parent 7a4bbaf commit aca2de0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/RS485_fullduplex/RS485_fullduplex.ino

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

4343
// Enable Full Duplex mode
4444
// This will also enable A/B and Y/Z 120 Ohm termination resistors
@@ -70,4 +70,4 @@ void loop() {
7070

7171
sendNow = millis() + sendInterval;
7272
}
73-
}
73+
}

0 commit comments

Comments
 (0)