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

Update external defines for ALT / POS HOLD (#14069)

* Update external defines for ALT / POS HOLD

* Update unit test define
This commit is contained in:
Mark Haslinghuis 2024-12-08 16:23:38 +01:00 committed by GitHub
parent b5ab83b3bc
commit 2426f43502
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 39 additions and 39 deletions

View file

@ -1805,7 +1805,7 @@ case MSP_NAME:
case MSP_RC_DEADBAND:
sbufWriteU8(dst, rcControlsConfig()->deadband);
sbufWriteU8(dst, rcControlsConfig()->yaw_deadband);
#ifdef USE_POS_HOLD_MODE
#ifdef USE_POSITION_HOLD
sbufWriteU8(dst, posHoldConfig()->pos_hold_deadband);
#else
sbufWriteU8(dst, 0);
@ -2965,7 +2965,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
case MSP_SET_RC_DEADBAND:
rcControlsConfigMutable()->deadband = sbufReadU8(src);
rcControlsConfigMutable()->yaw_deadband = sbufReadU8(src);
#ifdef USE_POS_HOLD_MODE
#ifdef USE_POSITION_HOLD
posHoldConfigMutable()->pos_hold_deadband = sbufReadU8(src);
#else
sbufReadU8(src);