1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

Removed the unused setting 'mag_declination'.

This commit is contained in:
mikeller 2020-05-02 19:21:48 +12:00
parent 3271ee3e13
commit b7ee04127d
6 changed files with 5 additions and 27 deletions

View file

@ -1327,12 +1327,6 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
#endif
break;
#ifdef USE_MAG
case MSP_COMPASS_CONFIG:
sbufWriteU16(dst, compassConfig()->mag_declination / 10);
break;
#endif
#if defined(USE_ESC_SENSOR)
// Deprecated in favor of MSP_MOTOR_TELEMETY as of API version 1.42
case MSP_ESC_SENSOR_DATA:
@ -2358,12 +2352,6 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
#endif
#endif
#ifdef USE_MAG
case MSP_SET_COMPASS_CONFIG:
compassConfigMutable()->mag_declination = sbufReadU16(src) * 10;
break;
#endif
case MSP_SET_MOTOR:
for (int i = 0; i < getMotorCount(); i++) {
motor_disarmed[i] = motorConvertFromExternal(sbufReadU16(src));