Compilation fixes

This commit is contained in:
3djc
2022-03-21 11:48:49 +01:00
committed by Raphael Coeffic
parent e63eeb0984
commit c0e6f2a7f9
5 changed files with 44 additions and 22 deletions
-15
View File
@@ -247,21 +247,6 @@ class SerialConfigWindow : public FormGroup
}
};
void restartExternalModule()
{
if (!IS_EXTERNAL_MODULE_ON()) {
return;
}
pauseMixerCalculations();
pausePulses();
EXTERNAL_MODULE_OFF();
RTOS_WAIT_MS(20); // 20ms so that the pulses interrupt will reinit the frame rate
telemetryProtocol = 255; // force telemetry port + module reinitialization
EXTERNAL_MODULE_ON();
resumePulses();
resumeMixerCalculations();
}
class InternalModuleWindow : public FormGroup {
public:
InternalModuleWindow(FormWindow *parent, const rect_t &rect) :