1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 23:05:19 +03:00

Call initEscEndPoints after auto changing profiles.

Reset escEndPoints with OSD.

Fix include order.
This commit is contained in:
Kenneth Mitchell 2019-04-22 22:04:51 -04:00
parent 078b25c565
commit 82d1736890
No known key found for this signature in database
GPG key ID: E27133AAF586AB21
3 changed files with 4 additions and 0 deletions

View file

@ -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;
}

View file

@ -715,6 +715,7 @@ void changePidProfile(uint8_t pidProfileIndex)
loadPidProfile();
pidInit(currentPidProfile);
initEscEndpoints();
}
beeperConfirmationBeeps(pidProfileIndex + 1);

View file

@ -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);