From f59d98482faa7f8a37bb29bbeb34f0b362923db9 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sun, 7 Jul 2024 05:08:49 -0700 Subject: [PATCH] Fix build when HAS_NETWORKING is false on nrf52 (#4237) (tested on a rak4631 by setting HAS_ETHERNET false when shrinking image) --- src/mesh/eth/ethClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesh/eth/ethClient.cpp b/src/mesh/eth/ethClient.cpp index 5373f243e..9f3bb8ab7 100644 --- a/src/mesh/eth/ethClient.cpp +++ b/src/mesh/eth/ethClient.cpp @@ -12,6 +12,8 @@ #include #include +#if HAS_NETWORKING + #ifndef DISABLE_NTP #include @@ -183,3 +185,5 @@ bool isEthernetAvailable() return true; } } + +#endif \ No newline at end of file