Use string constants in place of char*

This commit is contained in:
ford-jones 2025-08-21 12:00:19 +12:00 committed by Tom Fifield
parent 35d9e68053
commit 7b24d31636

View File

@ -303,16 +303,16 @@ bool RangeTestModuleRadio::appendFile(const meshtastic_MeshPacket &mp)
bool RangeTestModuleRadio::removeFile()
{
#ifdef ARCH_ESP32
char *fp = "/static/rangetest.csv";
if (FSCom.exists(fp)) {
if (FSCom.exists("/static/rangetest.csv")) {
LOG_INFO("Deleting previous range test.");
bool result = FSCom.remove(fp);
bool result = FSCom.remove("/static/rangetest.csv");
if (!result) {
LOG_ERROR("Failed to delete rangeTest.csv");
return 0;
}
LOG_INFO("Range test removed.");
}
#endif
return 1;
};
}