Skip to content

Commit 81a3906

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 874219b commit 81a3906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP32/examples/Serial/onReceiveExample/onReceiveExample.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ void setup() {
8080
Serial0.setClockSource(UART_CLK_SRC_APB);
8181
#endif
8282
// the amount of data received or waiting to be proessed shall not exceed this limit of 1024 bytes
83-
Serial0.setRxBufferSize(1024); // default is 256 bytes
84-
Serial0.begin(baudrate); // default pins and default mode 8N1 (8 bits data, no parity bit, 1 stopbit)
83+
Serial0.setRxBufferSize(1024); // default is 256 bytes
84+
Serial0.begin(baudrate); // default pins and default mode 8N1 (8 bits data, no parity bit, 1 stopbit)
8585
// set RX Timeout based on UART symbols ~ 3.5 symbols of 11 bits (MODBUS standard) ~= 2 ms at 19200
8686
Serial0.setRxTimeout(modbusRxTimeoutLimit); // 4 symbols at 19200 8N1 is about 2.08 ms (40 bits)
8787
// sets the callback function that will be executed only after RX Timeout

0 commit comments

Comments
 (0)