Skip to content

Commit f45c5fd

Browse files
authored
Merge pull request #299 from arduino/jcarolinares/opta/modbus-indentation-fix
Jcarolinares/opta/modbus indentation fix
2 parents a0f5567 + 8ee7d0c commit f45c5fd

File tree

1 file changed

+6
-12
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-with-modbus-rtu

1 file changed

+6
-12
lines changed

Diff for: content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-with-modbus-rtu/content.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ int counter = 0;
9595
void setup()
9696
{
9797
Serial.begin(9600);
98-
while (!Serial)
99-
;
98+
while (!Serial);
10099
101100
Serial.println("Modbus RTU Client");
102101
@@ -105,8 +104,7 @@ void setup()
105104
// start the Modbus RTU client
106105
if (!ModbusRTUClient.begin(baudrate, SERIAL_8E1)) {
107106
Serial.println("Failed to start Modbus RTU Client!");
108-
while (1)
109-
;
107+
while (1);
110108
}
111109
}
112110
```
@@ -161,8 +159,7 @@ int counter = 0;
161159
void setup()
162160
{
163161
Serial.begin(9600);
164-
while (!Serial)
165-
;
162+
while (!Serial);
166163
167164
Serial.println("Modbus RTU Client");
168165
@@ -171,8 +168,7 @@ void setup()
171168
// start the Modbus RTU client
172169
if (!ModbusRTUClient.begin(baudrate, SERIAL_8E1)) {
173170
Serial.println("Failed to start Modbus RTU Client!");
174-
while (1)
175-
;
171+
while (1);
176172
}
177173
}
178174
@@ -366,8 +362,7 @@ void setup() {
366362
// start the Modbus RTU client
367363
if (!ModbusRTUServer.begin(42, baudrate, SERIAL_8E1)) {
368364
Serial.println("Failed to start Modbus RTU Client!");
369-
while (1)
370-
;
365+
while (1);
371366
}
372367
373368
// configure coils at address 0x00
@@ -424,8 +419,7 @@ void setup() {
424419
// start the Modbus RTU client
425420
if (!ModbusRTUServer.begin(42, baudrate, SERIAL_8E1)) {
426421
Serial.println("Failed to start Modbus RTU Client!");
427-
while (1)
428-
;
422+
while (1);
429423
}
430424
431425
// configure coils at address 0x00

0 commit comments

Comments
 (0)