diff --git a/src/graphics/TFTDisplay.cpp b/src/graphics/TFTDisplay.cpp index d9592fdb5..986d081bd 100644 --- a/src/graphics/TFTDisplay.cpp +++ b/src/graphics/TFTDisplay.cpp @@ -378,7 +378,7 @@ class LGFX : public lgfx::LGFX_Device _panel_instance = new lgfx::Panel_HX8357D; else { _panel_instance = new lgfx::Panel_NULL; - LOG_ERROR("Unknown display panel configured!\n"); + LOG_ERROR("Unknown display panel configured!"); } auto buscfg = _bus_instance.config(); diff --git a/src/main.cpp b/src/main.cpp index a43e592a1..07167cb3a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -742,7 +742,7 @@ void setup() #else // ESP32 SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS); - LOG_DEBUG("SPI.begin(SCK=%d, MISO=%d, MOSI=%d, NSS=%d)\n", LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS); + LOG_DEBUG("SPI.begin(SCK=%d, MISO=%d, MOSI=%d, NSS=%d)", LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS); SPI.setFrequency(4000000); #endif #if HAS_TFT @@ -817,7 +817,7 @@ void setup() PacketAPI::create(PacketServer::init()); deviceScreen->init(new PacketClient); } else { - LOG_INFO("Running without TFT display!\n"); + LOG_INFO("Running without TFT display!"); } #else deviceScreen = &DeviceScreen::create(); @@ -1239,8 +1239,8 @@ void setup() #endif #ifdef ARDUINO_ARCH_ESP32 - LOG_DEBUG("Free heap : %7d bytes\n", ESP.getFreeHeap()); - LOG_DEBUG("Free PSRAM : %7d bytes\n", ESP.getFreePsram()); + LOG_DEBUG("Free heap : %7d bytes", ESP.getFreeHeap()); + LOG_DEBUG("Free PSRAM : %7d bytes", ESP.getFreePsram()); #endif } #endif diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 6b7056448..e5bd441ea 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -794,7 +794,7 @@ void NodeDB::loadFromDisk() state = loadProto(uiconfigFileName, meshtastic_DeviceUIConfig_size, sizeof(meshtastic_DeviceUIConfig), &meshtastic_DeviceUIConfig_msg, &uiconfig); if (state == LoadFileResult::LOAD_SUCCESS) { - LOG_INFO("Loaded UIConfig\n"); + LOG_INFO("Loaded UIConfig"); } // 2.4.X - configuration migration to update new default intervals diff --git a/src/mesh/PhoneAPI.cpp b/src/mesh/PhoneAPI.cpp index 48e5976d5..58685b6b5 100644 --- a/src/mesh/PhoneAPI.cpp +++ b/src/mesh/PhoneAPI.cpp @@ -202,7 +202,7 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf) break; case STATE_SEND_UIDATA: - LOG_INFO("getFromRadio=STATE_SEND_UIDATA\n"); + LOG_INFO("getFromRadio=STATE_SEND_UIDATA"); fromRadioScratch.which_payload_variant = meshtastic_FromRadio_deviceuiConfig_tag; fromRadioScratch.deviceuiConfig = uiconfig; state = STATE_SEND_OWN_NODEINFO; diff --git a/src/mesh/api/PacketAPI.cpp b/src/mesh/api/PacketAPI.cpp index 348b32949..6c3604efd 100644 --- a/src/mesh/api/PacketAPI.cpp +++ b/src/mesh/api/PacketAPI.cpp @@ -38,7 +38,7 @@ bool PacketAPI::receivePacket(void) meshtastic_ToRadio *mr; auto p = server->receivePacket()->move(); int id = p->getPacketId(); - LOG_DEBUG("Received packet id=%u\n", id); + LOG_DEBUG("Received packet id=%u", id); mr = (meshtastic_ToRadio *)&static_cast *>(p.get())->getData(); switch (mr->which_payload_variant) { @@ -50,22 +50,22 @@ bool PacketAPI::receivePacket(void) } case meshtastic_ToRadio_want_config_id_tag: { uint32_t config_nonce = mr->want_config_id; - LOG_INFO("Screen wants config, nonce=%u\n", config_nonce); + LOG_INFO("Screen wants config, nonce=%u", config_nonce); handleStartConfig(); break; } case meshtastic_ToRadio_heartbeat_tag: if (mr->heartbeat.dummy_field == 1) { if (nodeInfoModule) { - LOG_INFO("Broadcasting nodeinfo ping\n"); + LOG_INFO("Broadcasting nodeinfo ping"); nodeInfoModule->sendOurNodeInfo(NODENUM_BROADCAST, true, 0, true); } } else { - LOG_DEBUG("Got client heartbeat\n"); + LOG_DEBUG("Got client heartbeat"); } break; default: - LOG_ERROR("Error: unhandled meshtastic_ToRadio variant: %d\n", mr->which_payload_variant); + LOG_ERROR("Error: unhandled meshtastic_ToRadio variant: %d", mr->which_payload_variant); break; } } diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index f2d95c53a..c1aa69fba 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -176,7 +176,7 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta handleSetHamMode(r->set_ham_mode); break; case meshtastic_AdminMessage_get_ui_config_request_tag: { - LOG_INFO("Client is getting device-ui config\n"); + LOG_INFO("Client is getting device-ui config"); handleGetDeviceUIConfig(mp); handled = true; break; @@ -241,7 +241,7 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta break; } case meshtastic_AdminMessage_store_ui_config_tag: { - LOG_INFO("Storing device-ui config\n"); + LOG_INFO("Storing device-ui config"); handleStoreDeviceUIConfig(r->store_ui_config); handled = true; break; diff --git a/variants/rak2560/RAK9154Sensor.cpp b/variants/rak2560/RAK9154Sensor.cpp index 9f660947e..5fb09c130 100644 --- a/variants/rak2560/RAK9154Sensor.cpp +++ b/variants/rak2560/RAK9154Sensor.cpp @@ -37,11 +37,11 @@ static void onewire_evt(const uint8_t pid, const uint8_t sid, const SNHUBAPI_EVT break; case SNHUBAPI_EVT_ADD_SID: - // LOG_INFO("+ADD:SID:[%02x]\r\n", msg[0]); + // LOG_INFO("+ADD:SID:[%02x]", msg[0]); break; case SNHUBAPI_EVT_ADD_PID: - // LOG_INFO("+ADD:PID:[%02x]\r\n", msg[0]); + // LOG_INFO("+ADD:PID:[%02x]", msg[0]); #ifdef BOOT_DATA_REQ provision = msg[0]; #endif @@ -55,12 +55,12 @@ static void onewire_evt(const uint8_t pid, const uint8_t sid, const SNHUBAPI_EVT case SNHUBAPI_EVT_SDATA_REQ: - // LOG_INFO("+EVT:PID[%02x],IPSO[%02x]\r\n",pid,msg[0]); + // LOG_INFO("+EVT:PID[%02x],IPSO[%02x]",pid,msg[0]); // for( uint16_t i=1; i