@@ -27,12 +27,12 @@ void ntpServerStop() {}
2727
2828#endif // COMPILE_ETHERNET
2929
30- #ifndef COMPILE_NETWORK
31-
3230// ----------------------------------------
3331// Network layer
3432// ----------------------------------------
3533
34+ #ifndef COMPILE_NETWORK
35+
3636void menuTcpUdp () {systemPrint (" **Network not compiled**" );}
3737void networkBegin () {}
3838void networkConsumerAdd (NETCONSUMER_t consumer, NetIndex_t network, const char * fileName, uint32_t lineNumber) {}
@@ -62,16 +62,6 @@ void networkUserRemove(NETCONSUMER_t consumer, const char * fileName, uint32_t l
6262void networkValidateIndex (NetIndex_t index) {}
6363void networkVerifyTables () {}
6464
65- // ----------------------------------------
66- // UDP server
67- // ----------------------------------------
68-
69- void udpServerDiscardBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
70- int32_t udpServerSendData (uint16_t dataHead) {return 0 ;}
71- void udpServerStop () {}
72- void udpServerUpdate () {}
73- void udpServerZeroTail () {}
74-
7565#endif // COMPILE_NETWORK
7666
7767// ----------------------------------------
@@ -166,6 +156,18 @@ void tcpServerValidateTables() {}
166156void tcpServerZeroTail () {}
167157#endif // COMPILE_TCP_SERVER
168158
159+ // ----------------------------------------
160+ // UDP server
161+ // ----------------------------------------
162+
163+ #ifndef COMPILE_UDP_SERVER
164+ void udpServerDiscardBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
165+ int32_t udpServerSendData (uint16_t dataHead) {return 0 ;}
166+ void udpServerStop () {}
167+ void udpServerUpdate () {}
168+ void udpServerZeroTail () {}
169+ #endif // COMPILE_UDP_SERVER
170+
169171// ----------------------------------------
170172// Web Server
171173// ----------------------------------------
0 commit comments