Skip to content

Commit

Permalink
idle_poll in RP2040W
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Oct 18, 2024
1 parent 05dbc21 commit 62c33d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion microcontrollers/RP2040W/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void setup()
pinMode(led_red, OUTPUT);

try {
c = new com_arduino(3260);
c = new com_arduino(3260, idle_poll);
wifi_connected = c->begin();
if (wifi_connected == false)
Serial.println(F("Failed to initialize com-layer"));
Expand Down Expand Up @@ -97,6 +97,10 @@ void setup()
}
}

void idle_poll()
{
}

void loop()
{
Serial.print(millis());
Expand Down
2 changes: 1 addition & 1 deletion microcontrollers/com-arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ com_client *com_arduino::accept()

auto wc = server->accept();

return new com_client_arduino(wc);
return new com_client_arduino(wc, idle_poll);
#endif
}

Expand Down

0 comments on commit 62c33d0

Please sign in to comment.