mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Call initEscEndPoints after changing profiles. (#8108)
Call initEscEndPoints after changing profiles.
This commit is contained in:
commit
212aa197cb
3 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
||||||
#include "fc/rc_controls.h"
|
#include "fc/rc_controls.h"
|
||||||
#include "fc/runtime_config.h"
|
#include "fc/runtime_config.h"
|
||||||
|
|
||||||
|
#include "flight/mixer.h"
|
||||||
#include "flight/pid.h"
|
#include "flight/pid.h"
|
||||||
|
|
||||||
#include "pg/pg.h"
|
#include "pg/pg.h"
|
||||||
|
@ -385,6 +386,7 @@ static long cmsx_profileOtherOnExit(const OSD_Entry *self)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
initEscEndpoints();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -715,6 +715,7 @@ void changePidProfile(uint8_t pidProfileIndex)
|
||||||
loadPidProfile();
|
loadPidProfile();
|
||||||
|
|
||||||
pidInit(currentPidProfile);
|
pidInit(currentPidProfile);
|
||||||
|
initEscEndpoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
beeperConfirmationBeeps(pidProfileIndex + 1);
|
beeperConfirmationBeeps(pidProfileIndex + 1);
|
||||||
|
|
|
@ -115,6 +115,7 @@ float getMotorMixRange(void);
|
||||||
bool areMotorsRunning(void);
|
bool areMotorsRunning(void);
|
||||||
|
|
||||||
void mixerLoadMix(int index, motorMixer_t *customMixers);
|
void mixerLoadMix(int index, motorMixer_t *customMixers);
|
||||||
|
void initEscEndpoints(void);
|
||||||
void mixerInit(mixerMode_e mixerMode);
|
void mixerInit(mixerMode_e mixerMode);
|
||||||
|
|
||||||
void mixerConfigureOutput(void);
|
void mixerConfigureOutput(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue