mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Add fpvCamAngle to MSP
This commit is contained in:
parent
857de9ab20
commit
c96ffe5164
1 changed files with 4 additions and 0 deletions
|
@ -951,6 +951,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
|
||||||
sbufWriteU8(dst, rxConfig()->rx_spi_protocol);
|
sbufWriteU8(dst, rxConfig()->rx_spi_protocol);
|
||||||
sbufWriteU32(dst, rxConfig()->rx_spi_id);
|
sbufWriteU32(dst, rxConfig()->rx_spi_id);
|
||||||
sbufWriteU8(dst, rxConfig()->rx_spi_rf_channel_count);
|
sbufWriteU8(dst, rxConfig()->rx_spi_rf_channel_count);
|
||||||
|
sbufWriteU8(dst, rxConfig()->fpvCamAngleDegrees);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_FAILSAFE_CONFIG:
|
case MSP_FAILSAFE_CONFIG:
|
||||||
|
@ -1745,6 +1746,9 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
||||||
rxConfig()->rx_spi_id = sbufReadU32(src);
|
rxConfig()->rx_spi_id = sbufReadU32(src);
|
||||||
rxConfig()->rx_spi_rf_channel_count = sbufReadU8(src);
|
rxConfig()->rx_spi_rf_channel_count = sbufReadU8(src);
|
||||||
}
|
}
|
||||||
|
if (dataSize > 22) {
|
||||||
|
rxConfig()->fpvCamAngleDegrees = sbufReadU8(src);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_SET_FAILSAFE_CONFIG:
|
case MSP_SET_FAILSAFE_CONFIG:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue