diff --git a/src/DebugConfiguration.cpp b/src/DebugConfiguration.cpp index bac67c591..815414bc2 100644 --- a/src/DebugConfiguration.cpp +++ b/src/DebugConfiguration.cpp @@ -22,8 +22,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/ +#include "configuration.h" #include "DebugConfiguration.h" +#if HAS_WIFI || HAS_ETHERNET + Syslog::Syslog(UDP &client) { this->_client = &client; @@ -218,4 +221,6 @@ inline bool Syslog::_sendLog(uint16_t pri, const __FlashStringHelper *message) this->_client->endPacket(); return true; -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/src/DebugConfiguration.h b/src/DebugConfiguration.h index 19f36e200..2d250f420 100644 --- a/src/DebugConfiguration.h +++ b/src/DebugConfiguration.h @@ -110,7 +110,13 @@ #if HAS_ETHERNET #include -#endif +#endif // HAS_ETHERNET + +#if HAS_WIFI +#include +#endif // HAS_WIFI + +#if HAS_WIFI || HAS_ETHERNET class Syslog { @@ -151,4 +157,6 @@ class Syslog bool logf(uint16_t pri, const char *fmt, ...) __attribute__((format(printf, 3, 4))); }; -#endif \ No newline at end of file +#endif // HAS_ETHERNET || HAS_WIFI + +#endif // SYSLOG_H \ No newline at end of file