1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Moved resetting rateprofile values into 'resetPidProfile' to make them get reset on 'Reset PID' in GUI.

This commit is contained in:
Michael Keller 2016-07-27 07:27:41 +12:00
parent 2fceeb3dcd
commit 75368fb6a2
2 changed files with 29 additions and 24 deletions

View file

@ -103,7 +103,7 @@ static serialPort_t *mspSerialPort;
extern uint16_t cycleTime; // FIXME dependency on mw.c
extern uint16_t rssi; // FIXME dependency on mw.c
extern void resetPidProfile(pidProfile_t *pidProfile);
extern void resetProfile(profile_t *profile);
void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions, escAndServoConfig_t *escAndServoConfigToUse, pidProfile_t *pidProfileToUse);
@ -1482,7 +1482,7 @@ static bool processInCommand(void)
break;
case MSP_SET_RESET_CURR_PID:
resetPidProfile(&currentProfile->pidProfile);
resetProfile(currentProfile);
break;
case MSP_SET_SENSOR_ALIGNMENT: