From 0083e9bd84d8b981e71ffffb9ab6b1297dda6669 Mon Sep 17 00:00:00 2001 From: gaelj Date: Sun, 26 Jun 2016 22:17:39 +0200 Subject: [PATCH] Move deadband3d_throttle from MSP_3D to MSP_RC_DEADBAND Only for MSP framing compatibility with CF. Does not include to change from global to profile. --- src/main/io/serial_msp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/io/serial_msp.c b/src/main/io/serial_msp.c index 80e4717fd..a74e152ad 100644 --- a/src/main/io/serial_msp.c +++ b/src/main/io/serial_msp.c @@ -1241,7 +1241,6 @@ static bool processOutCommand(uint8_t cmdMSP) serialize16(masterConfig.flight3DConfig.deadband3d_low); serialize16(masterConfig.flight3DConfig.deadband3d_high); serialize16(masterConfig.flight3DConfig.neutral3d); - serialize16(masterConfig.flight3DConfig.deadband3d_throttle); break; case MSP_RC_DEADBAND: @@ -1249,6 +1248,7 @@ static bool processOutCommand(uint8_t cmdMSP) serialize8(masterConfig.rcControlsConfig.deadband); serialize8(masterConfig.rcControlsConfig.yaw_deadband); serialize8(masterConfig.rcControlsConfig.alt_hold_deadband); + serialize16(masterConfig.flight3DConfig.deadband3d_throttle); break; case MSP_SENSOR_ALIGNMENT: headSerialReply(3); @@ -1504,13 +1504,13 @@ static bool processInCommand(void) masterConfig.flight3DConfig.deadband3d_low = read16(); masterConfig.flight3DConfig.deadband3d_high = read16(); masterConfig.flight3DConfig.neutral3d = read16(); - masterConfig.flight3DConfig.deadband3d_throttle = read16(); break; case MSP_SET_RC_DEADBAND: masterConfig.rcControlsConfig.deadband = read8(); masterConfig.rcControlsConfig.yaw_deadband = read8(); masterConfig.rcControlsConfig.alt_hold_deadband = read8(); + masterConfig.flight3DConfig.deadband3d_throttle = read16(); break; case MSP_SET_RESET_CURR_PID: