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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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