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