diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index f5414bafe..354a81846 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -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(&f), protoSize};