Delete ringtone.proto file for factory reset (#7303)

This commit is contained in:
Ben Meadors
2025-07-11 08:22:50 -05:00
committed by GitHub
parent e9a551ae90
commit 9798a91e7b
2 changed files with 3 additions and 1 deletions

View File

@@ -474,6 +474,9 @@ bool NodeDB::factoryReset(bool eraseBleBonds)
if (FSCom.exists("/static/rangetest.csv") && !FSCom.remove("/static/rangetest.csv")) {
LOG_ERROR("Could not remove rangetest.csv file");
}
if (FSCom.exists("/prefs/ringtone.proto") && !FSCom.remove("/prefs/ringtone.proto")) {
LOG_ERROR("Could not remove ringtone.proto file");
}
#endif
spiLock->unlock();
// second, install default state (this will deal with the duplicate mac address issue)