Skip to content

Commit 6ea1411

Browse files
committed
1 parent ec5eebb commit 6ea1411

File tree

1 file changed

+3
-3
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/user-manual

1 file changed

+3
-3
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/portenta-machine-control/tutorials/user-manual/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ void setup() {
13111311
// Wait for serial port to connect (necessary for boards with native USB)
13121312
//while (!Serial);
13131313
// Initialize RS-485 communication with specified baud rate and delays
1314-
MachineControl_RS485Comm.begin(baudrate, preDelay, postDelay);
1314+
MachineControl_RS485Comm.begin(baudrate, SERIAL_8N1, preDelay, postDelay);
13151315
13161316
MachineControl_RS485Comm.setFullDuplex(true);
13171317
@@ -1398,7 +1398,7 @@ void setup() {
13981398
Serial.println("- Modbus RTU Server");
13991399
14001400
// Set RS485 transmission delays as per Modbus specification
1401-
MachineControl_RS485Comm.begin(baudrate, preDelay, postDelay);
1401+
MachineControl_RS485Comm.begin(baudrate, SERIAL_8N1, preDelay, postDelay);
14021402
14031403
// Enable full duplex mode and 120 Ohm termination resistors
14041404
MachineControl_RS485Comm.setFullDuplex(true);
@@ -1637,7 +1637,7 @@ void setup() {
16371637
Serial.begin(9600);
16381638
16391639
// Initialize RS-485 communication with specified baud rate and delays
1640-
MachineControl_RS485Comm.begin(baudrate, preDelay, postDelay);
1640+
MachineControl_RS485Comm.begin(baudrate, SERIAL_8N1, preDelay, postDelay);
16411641
16421642
// Short delay to ensure RS-485 communication is stable
16431643
delay(2500);

0 commit comments

Comments
 (0)