diff --git a/microcontrollers/RP2040W/main.ino b/microcontrollers/RP2040W/main.ino index eebe718..b89188b 100644 --- a/microcontrollers/RP2040W/main.ino +++ b/microcontrollers/RP2040W/main.ino @@ -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")); @@ -97,6 +97,10 @@ void setup() } } +void idle_poll() +{ +} + void loop() { Serial.print(millis()); diff --git a/microcontrollers/com-arduino.cpp b/microcontrollers/com-arduino.cpp index 586713e..3694405 100644 --- a/microcontrollers/com-arduino.cpp +++ b/microcontrollers/com-arduino.cpp @@ -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 }