Skip to content

Commit

Permalink
fix MESHTASTIC_EXCLUDE_BLUETOOTH
Browse files Browse the repository at this point in the history
  • Loading branch information
mverch67 committed Jul 5, 2024
1 parent c1df621 commit ea4a6a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/RedirectablePrint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ea4a6a6

Please sign in to comment.