From 1c33cb1cf2a627af2af943dd4e4541bc36e99e43 Mon Sep 17 00:00:00 2001 From: Hydra Date: Sun, 19 Mar 2017 21:12:33 +0000 Subject: [PATCH] CF/BF - Rename MSP_BOARD_ALIGNMENT to MSP_BOARD_ALIGNMENT_CONFIG --- src/main/fc/fc_msp.c | 4 ++-- src/main/msp/msp_protocol.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/fc/fc_msp.c b/src/main/fc/fc_msp.c index b68cc83b7..00a3e12c4 100755 --- a/src/main/fc/fc_msp.c +++ b/src/main/fc/fc_msp.c @@ -869,7 +869,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn sbufWriteU32(dst, featureMask()); break; - case MSP_BOARD_ALIGNMENT: + case MSP_BOARD_ALIGNMENT_CONFIG: sbufWriteU16(dst, boardAlignment()->rollDegrees); sbufWriteU16(dst, boardAlignment()->pitchDegrees); sbufWriteU16(dst, boardAlignment()->yawDegrees); @@ -1760,7 +1760,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src) featureSet(sbufReadU32(src)); // features bitmap break; - case MSP_SET_BOARD_ALIGNMENT: + case MSP_SET_BOARD_ALIGNMENT_CONFIG: boardAlignmentMutable()->rollDegrees = sbufReadU16(src); boardAlignmentMutable()->pitchDegrees = sbufReadU16(src); boardAlignmentMutable()->yawDegrees = sbufReadU16(src); diff --git a/src/main/msp/msp_protocol.h b/src/main/msp/msp_protocol.h index 0bf3f2da9..48ff9d2f1 100644 --- a/src/main/msp/msp_protocol.h +++ b/src/main/msp/msp_protocol.h @@ -114,8 +114,8 @@ #define MSP_FEATURE_CONFIG 36 #define MSP_SET_FEATURE_CONFIG 37 -#define MSP_BOARD_ALIGNMENT 38 -#define MSP_SET_BOARD_ALIGNMENT 39 +#define MSP_BOARD_ALIGNMENT_CONFIG 38 +#define MSP_SET_BOARD_ALIGNMENT_CONFIG 39 #define MSP_CURRENT_METER_CONFIG 40 #define MSP_SET_CURRENT_METER_CONFIG 41