mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Merge pull request #9753 from mikeller/remove_mag_declination
Removed the unused setting 'mag_declination'.
This commit is contained in:
commit
12f02a1f19
6 changed files with 5 additions and 27 deletions
|
@ -1321,12 +1321,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:
|
||||
|
@ -2375,12 +2369,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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue