From 7c8dca3fcc8c13522068495a77000c2edd2dbf75 Mon Sep 17 00:00:00 2001 From: mverch67 Date: Fri, 5 Jul 2024 12:29:59 +0200 Subject: [PATCH] fix bluetooth exclusion --- src/RedirectablePrint.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/RedirectablePrint.cpp b/src/RedirectablePrint.cpp index 1851ffbaa..01e5a34a7 100644 --- a/src/RedirectablePrint.cpp +++ b/src/RedirectablePrint.cpp @@ -173,6 +173,7 @@ void RedirectablePrint::log_to_syslog(const char *logLevel, const char *format, void RedirectablePrint::log_to_ble(const char *logLevel, const char *format, va_list arg) { +#if !MESHTASTIC_EXCLUDE_BLUETOOTH if (config.bluetooth.device_logging_enabled && !pauseBluetoothLogging) { bool isBleConnected = false; #ifdef ARCH_ESP32 @@ -211,6 +212,11 @@ void RedirectablePrint::log_to_ble(const char *logLevel, const char *format, va_ delete[] buffer; } } +#else + (void)logLevel; + (void)format; + (void)arg; +#endif } meshtastic_LogRecord_Level RedirectablePrint::getLogLevel(const char *logLevel)