mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
MSP Add allowArmingWithoutFix
fixed compatibility and comments
This commit is contained in:
parent
bd135fff74
commit
3b8d37e96d
1 changed files with 4 additions and 0 deletions
|
@ -1297,6 +1297,7 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
||||||
// Added in API version 1.43
|
// Added in API version 1.43
|
||||||
sbufWriteU16(dst, gpsRescueConfig()->ascendRate);
|
sbufWriteU16(dst, gpsRescueConfig()->ascendRate);
|
||||||
sbufWriteU16(dst, gpsRescueConfig()->descendRate);
|
sbufWriteU16(dst, gpsRescueConfig()->descendRate);
|
||||||
|
sbufWriteU8(dst, gpsRescueConfig()->allowArmingWithoutFix);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_GPS_RESCUE_PIDS:
|
case MSP_GPS_RESCUE_PIDS:
|
||||||
|
@ -2196,6 +2197,9 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, uint8_t cmdMSP,
|
||||||
// Added in API version 1.43
|
// Added in API version 1.43
|
||||||
gpsRescueConfigMutable()->ascendRate = sbufReadU16(src);
|
gpsRescueConfigMutable()->ascendRate = sbufReadU16(src);
|
||||||
gpsRescueConfigMutable()->descendRate = sbufReadU16(src);
|
gpsRescueConfigMutable()->descendRate = sbufReadU16(src);
|
||||||
|
if (sbufBytesRemaining(src) >= 1) {
|
||||||
|
// Added in API version 1.43
|
||||||
|
gpsRescueConfigMutable()->allowArmingWithoutFix = sbufReadU8(src);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue