mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +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/runtime_config.h"
|
||||
|
||||
#include "flight/mixer.h"
|
||||
#include "flight/pid.h"
|
||||
|
||||
#include "pg/pg.h"
|
||||
|
@ -385,6 +386,7 @@ static long cmsx_profileOtherOnExit(const OSD_Entry *self)
|
|||
}
|
||||
#endif
|
||||
|
||||
initEscEndpoints();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -715,6 +715,7 @@ void changePidProfile(uint8_t pidProfileIndex)
|
|||
loadPidProfile();
|
||||
|
||||
pidInit(currentPidProfile);
|
||||
initEscEndpoints();
|
||||
}
|
||||
|
||||
beeperConfirmationBeeps(pidProfileIndex + 1);
|
||||
|
|
|
@ -115,6 +115,7 @@ float getMotorMixRange(void);
|
|||
bool areMotorsRunning(void);
|
||||
|
||||
void mixerLoadMix(int index, motorMixer_t *customMixers);
|
||||
void initEscEndpoints(void);
|
||||
void mixerInit(mixerMode_e mixerMode);
|
||||
|
||||
void mixerConfigureOutput(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue