diff --git a/NetworkClientUDP.h b/NetworkClientUDP.h
index bb23617..e105961 100644
--- a/NetworkClientUDP.h
+++ b/NetworkClientUDP.h
@@ -17,6 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see .
*/
+#ifdef Z21_PROTOCOL
#include
#include
@@ -35,3 +36,4 @@ public:
static WiFiUDP client;
};
+#endif