Unit test fixes

This commit is contained in:
Pascal Serrarens 2025-04-28 18:14:03 +02:00
parent df1a769d10
commit 478d6d9431
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,9 @@
namespace RoboidControl { namespace RoboidControl {
namespace Arduino { namespace Arduino {
#if defined(ARDUINO) && defined(HAS_WIFI)
WiFiUDP* udp; WiFiUDP* udp;
#endif
void ParticipantUDP::Setup() { void ParticipantUDP::Setup() {
#if defined(ARDUINO) && defined(HAS_WIFI) #if defined(ARDUINO) && defined(HAS_WIFI)

View File

@ -25,9 +25,7 @@
namespace RoboidControl { namespace RoboidControl {
ParticipantUDP::ParticipantUDP(int port) { ParticipantUDP::ParticipantUDP(int port) : Participant("0.0.0.0", port) {
this->ipAddress = "0.0.0.0";
this->port = port;
this->remoteSite = nullptr; this->remoteSite = nullptr;
if (this->port == 0) if (this->port == 0)
this->isIsolated = true; this->isIsolated = true;