We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ea1e21 commit a929b32Copy full SHA for a929b32
Firmware/RTK_Surveyor/NetworkUDP.h
@@ -56,21 +56,12 @@ class NetworkUDP : public UDP
56
57
//------------------------------
58
// Determine if the network client was allocated
59
+ // Note: EthernetUDP and WiFiUDP do not have operator bool() methods
60
61
62
operator bool()
63
{
-#if defined(COMPILE_ETHERNET)
64
- if (_networkType == NETWORK_TYPE_ETHERNET)
65
- if (_udp)
66
- return (*((EthernetUDP *)_udp));
67
-#endif // COMPILE_ETHERNET
68
-#if defined(COMPILE_WIFI)
69
- if (_networkType == NETWORK_TYPE_WIFI)
70
71
- return (*((WiFiUDP *)_udp));
72
-#endif // COMPILE_WIFI
73
- return false;
+ return _udp;
74
}
75
76
0 commit comments