mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-29 20:49:50 +00:00
No longer needed
This commit is contained in:
parent
16c03d53ef
commit
08f3a358aa
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user