diff --git a/src/RedirectablePrint.cpp b/src/RedirectablePrint.cpp index 1851ffbaad..01e5a34a70 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) diff --git a/src/graphics/Screen.h b/src/graphics/Screen.h index e80581d6d9..83c9a7a946 100644 --- a/src/graphics/Screen.h +++ b/src/graphics/Screen.h @@ -22,6 +22,10 @@ class Screen void doDeepSleep() {} void forceDisplay(bool forceUiUpdate = false) {} void startFirmwareUpdateScreen() {} + void increaseBrightness() {} + void decreaseBrightness() {} + void setFunctionSymbal(std::string) {} + void removeFunctionSymbal(std::string) {} void startAlert(const char *) {} void endAlert() {} }; diff --git a/src/mesh/MeshService.cpp b/src/mesh/MeshService.cpp index c92b89eb47..e5f33e8e7f 100644 --- a/src/mesh/MeshService.cpp +++ b/src/mesh/MeshService.cpp @@ -269,7 +269,7 @@ bool MeshService::trySendPosition(NodeNum dest, bool wantReplies) assert(node); if (hasValidPosition(node)) { -#if HAS_GPS +#if HAS_GPS && !MESHTASTIC_EXCLUDE_GPS if (positionModule) { LOG_INFO("Sending position ping to 0x%x, wantReplies=%d, channel=%d\n", dest, wantReplies, node->channel); positionModule->sendOurPosition(dest, wantReplies, node->channel); diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index 11821a0a3e..e24c62712d 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -232,9 +232,9 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta #if !MESHTASTIC_EXCLUDE_GPS if (gps != nullptr) gps->enable(); -#endif // Send our new fixed position to the mesh for good measure positionModule->sendOurPosition(); +#endif } break; }