No longer needed

This commit is contained in:
Ben Meadors 2025-01-23 05:44:56 -06:00
parent 16c03d53ef
commit 08f3a358aa

View File

@ -1103,16 +1103,7 @@ bool NodeDB::saveProto(const char *filename, size_t protoSize, const pb_msgdesc_
bool fullAtomic)
{
bool okay = false;
#ifdef FSCom
bool removeFirst = false;
#ifdef ARCH_NRF52
// On nrf52 we have to fully remove the device state file before writing it,
// because the filesystem seems to just append to the file otherwise.
if (filename == prefFileName) {
removeFirst = true;
}
#endif
auto f = SafeFile(filename, fullAtomic, removeFirst);
auto f = SafeFile(filename, fullAtomic);
LOG_INFO("Save %s", filename);
pb_ostream_t stream = {&writecb, static_cast<Print *>(&f), protoSize};