Skip to content

Commit e80ecf5

Browse files
alepivaemelianov
authored andcommitted
Update ESP32-Concurent.ino (#217)
typo fix
1 parent 69f3d07 commit e80ecf5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/RTU/ESP32-Concurent/ESP32-Concurent.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void setup() {
6565

6666
xTaskCreatePinnedToCore(
6767
loop2, /* Task function. */
68-
"Task1", /* name of task. */
68+
"Task2", /* name of task. */
6969
10000, /* Stack size of task */
7070
NULL, /* parameter of the task */
7171
1, /* priority of the task */
@@ -79,9 +79,9 @@ void loop1( void * pvParameters ){
7979
while(true) {
8080
delay(10);
8181
if (readSync(SLAVE_ID1, REG, REG_NUM, hregs1) == Modbus::EX_SUCCESS)
82-
Serial.println("OK 2");
82+
Serial.println("OK 1");
8383
else
84-
Serial.println("Error 2");
84+
Serial.println("Error 1");
8585
}
8686
}
8787

@@ -98,4 +98,4 @@ void loop2( void * pvParameters ){
9898

9999
void loop() {
100100
delay(100);
101-
}
101+
}

0 commit comments

Comments
 (0)