From 279c1eb12ba70d2e70b9ea95e4fc041ac8d33b89 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 16 Jul 2026 22:26:06 +0200 Subject: [PATCH 1/5] chore: remove empty handleWebResponse() stub in PiWebServer --- src/mesh/raspihttp/PiWebServer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesh/raspihttp/PiWebServer.cpp b/src/mesh/raspihttp/PiWebServer.cpp index 49cd3ddb225..b4c99cd2742 100644 --- a/src/mesh/raspihttp/PiWebServer.cpp +++ b/src/mesh/raspihttp/PiWebServer.cpp @@ -231,8 +231,6 @@ int callback_static_file(const struct _u_request *request, struct _u_response *r } } -static void handleWebResponse() {} - /* * Adapt the radioapi to the Webservice handleAPIv1ToRadio * Trigger : WebGui(SAVE)->WebServcice->phoneApi From 9b93e95848aef3c4669ce6247a5fea413b81c19a Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 16 Jul 2026 22:26:30 +0200 Subject: [PATCH 2/5] chore: remove unused PowerStatus::knowsUSB() --- src/PowerStatus.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/PowerStatus.h b/src/PowerStatus.h index fe4543e08d2..0adca488ad0 100644 --- a/src/PowerStatus.h +++ b/src/PowerStatus.h @@ -51,9 +51,6 @@ class PowerStatus : public Status bool getHasUSB() const { return hasUSB == OptTrue; } - /// Can we even know if this board has USB power or not - bool knowsUSB() const { return hasUSB != OptUnknown; } - bool getIsCharging() const { return isCharging == OptTrue; } int getBatteryVoltageMv() const { return batteryVoltageMv; } From e8da233d35f32fc46a3610ed145cabce05246c76 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 16 Jul 2026 22:26:50 +0200 Subject: [PATCH 3/5] chore: remove orphaned fsListFiles() declaration --- src/FSCommon.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/FSCommon.h b/src/FSCommon.h index c974840fe11..080ede691f3 100644 --- a/src/FSCommon.h +++ b/src/FSCommon.h @@ -57,7 +57,6 @@ using namespace Adafruit_LittleFS_Namespace; #endif void fsInit(); -void fsListFiles(); bool copyFile(const char *from, const char *to); bool renameFile(const char *pathFrom, const char *pathTo); bool fsFormat(); From 0ebd27c54a6b0f9f3f4bcb904dba86091d810639 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 16 Jul 2026 22:28:14 +0200 Subject: [PATCH 4/5] chore: remove stale #if 0 SPI-comms test in SX126xInterface --- src/mesh/SX126xInterface.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/mesh/SX126xInterface.cpp b/src/mesh/SX126xInterface.cpp index ae4c485ddc5..817134b5874 100644 --- a/src/mesh/SX126xInterface.cpp +++ b/src/mesh/SX126xInterface.cpp @@ -173,30 +173,6 @@ template bool SX126xInterface::init() LOG_WARN("Failed to apply SX1262 register 0x8B5 patch for RX improvement"); } -#if 0 - // Read/write a register we are not using (only used for FSK mode) to test SPI comms - uint8_t crcLSB = 0; - int err = lora.readRegister(SX126X_REG_CRC_POLYNOMIAL_LSB, &crcLSB, 1); - if(err != RADIOLIB_ERR_NONE) - RECORD_CRITICALERROR(CriticalErrorCode_SX1262Failure); - - //if(crcLSB != 0x0f) - // RECORD_CRITICALERROR(CriticalErrorCode_SX1262Failure); - - crcLSB = 0x5a; - err = lora.writeRegister(SX126X_REG_CRC_POLYNOMIAL_LSB, &crcLSB, 1); - if(err != RADIOLIB_ERR_NONE) - RECORD_CRITICALERROR(CriticalErrorCode_SX1262Failure); - - err = lora.readRegister(SX126X_REG_CRC_POLYNOMIAL_LSB, &crcLSB, 1); - if(err != RADIOLIB_ERR_NONE) - RECORD_CRITICALERROR(CriticalErrorCode_SX1262Failure); - - if(crcLSB != 0x5a) - RECORD_CRITICALERROR(CriticalErrorCode_SX1262Failure); - // If we got this far register accesses (and therefore SPI comms) are good -#endif - if (res == RADIOLIB_ERR_NONE) res = lora.setCRC(RADIOLIB_SX126X_LORA_CRC_ON); From 764ac0c1a5a6ece31492eb1388b52fbefe3ac9da Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 16 Jul 2026 22:28:41 +0200 Subject: [PATCH 5/5] chore: remove stale #if 0 cert-delete debug block in WebServer --- src/mesh/http/WebServer.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/mesh/http/WebServer.cpp b/src/mesh/http/WebServer.cpp index fddc118a777..5e42aa389d0 100644 --- a/src/mesh/http/WebServer.cpp +++ b/src/mesh/http/WebServer.cpp @@ -96,14 +96,6 @@ static void taskCreateCert(void *parameter) { prefs.begin("MeshtasticHTTPS", false); -#if 0 - // Delete the saved certs (used in debugging) - LOG_DEBUG("Delete any saved SSL keys"); - // prefs.clear(); - prefs.remove("PK"); - prefs.remove("cert"); -#endif - LOG_INFO("Checking if we have a saved SSL Certificate"); size_t pkLen = prefs.getBytesLength("PK");