Turn off module on model change (#8189)

This commit is contained in:
3djc
2021-01-15 17:20:41 +01:00
committed by GitHub
parent 1f01fa6d47
commit e632a335ea
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -246,6 +246,7 @@ void onModelSelectMenu(const char * result)
if (!confirmModelChange())
return;
}
// we store the latest changes if any
storageFlushCurrentModel();
storageCheck(true);
+3
View File
@@ -52,6 +52,9 @@ void preModelLoad()
pausePulses();
}
pauseMixerCalculations();
#if defined(EXTMODULE_PWR_GPIO)
EXTERNAL_MODULE_PWR_OFF();
#endif
stopTrainer();
}