Factory reset should include modules and channels (#1828)

This commit is contained in:
Ben Meadors
2022-10-20 07:51:52 -05:00
committed by GitHub
parent 995885962d
commit 97968213ff

View File

@@ -130,6 +130,8 @@ bool NodeDB::factoryReset()
// second, install default state (this will deal with the duplicate mac address issue)
installDefaultDeviceState();
installDefaultConfig();
installDefaultModuleConfig();
installDefaultChannels();
// third, write everything to disk
saveToDisk();
#ifdef ARCH_ESP32