Turn off module on model change (#8189)
This commit is contained in:
@@ -246,6 +246,7 @@ void onModelSelectMenu(const char * result)
|
||||
if (!confirmModelChange())
|
||||
return;
|
||||
}
|
||||
|
||||
// we store the latest changes if any
|
||||
storageFlushCurrentModel();
|
||||
storageCheck(true);
|
||||
|
||||
@@ -52,6 +52,9 @@ void preModelLoad()
|
||||
pausePulses();
|
||||
}
|
||||
pauseMixerCalculations();
|
||||
#if defined(EXTMODULE_PWR_GPIO)
|
||||
EXTERNAL_MODULE_PWR_OFF();
|
||||
#endif
|
||||
|
||||
stopTrainer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user