mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-30 13:00: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 fullAtomic)
|
||||||
{
|
{
|
||||||
bool okay = false;
|
bool okay = false;
|
||||||
#ifdef FSCom
|
auto f = SafeFile(filename, fullAtomic);
|
||||||
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);
|
|
||||||
|
|
||||||
LOG_INFO("Save %s", filename);
|
LOG_INFO("Save %s", filename);
|
||||||
pb_ostream_t stream = {&writecb, static_cast<Print *>(&f), protoSize};
|
pb_ostream_t stream = {&writecb, static_cast<Print *>(&f), protoSize};
|
||||||
|
Loading…
Reference in New Issue
Block a user