Browse Source

AP_RCProtocol: fixed coverity error in SUMD

CID308356
master
Andrew Tridgell 7 years ago
parent
commit
301884f7a6
  1. 2
      libraries/AP_RCProtocol/AP_RCProtocol_SUMD.h

2
libraries/AP_RCProtocol/AP_RCProtocol_SUMD.h

@ -34,7 +34,7 @@ private: @@ -34,7 +34,7 @@ private:
uint8_t header; ///< 0xA8 for a valid packet
uint8_t status; ///< 0x01 valid and live SUMD data frame / 0x00 = SUMH / 0x81 = Failsafe
uint8_t length; ///< Channels
uint8_t sumd_data[SUMD_MAX_CHANNELS * 2]; ///< ChannelData (High Byte/ Low Byte)
uint8_t sumd_data[(SUMD_MAX_CHANNELS+1) * 2]; ///< ChannelData (High Byte/ Low Byte)
uint8_t crc16_high; ///< High Byte of 16 Bit CRC
uint8_t crc16_low; ///< Low Byte of 16 Bit CRC
uint8_t telemetry; ///< Telemetry request

Loading…
Cancel
Save