DataFlash: Fix allocating extra values for RC logging

This commit is contained in:
Michael du Breuil 2018-08-08 17:34:15 -07:00 committed by Andrew Tridgell
parent c8cb5b9e0f
commit 6469a985d7
1 changed files with 2 additions and 2 deletions

View File

@ -198,8 +198,8 @@ void DataFlash_Class::Log_Write_RFND(const RangeFinder &rangefinder)
// Write an RCIN packet // Write an RCIN packet
void DataFlash_Class::Log_Write_RCIN(void) void DataFlash_Class::Log_Write_RCIN(void)
{ {
uint16_t values[16] = {}; uint16_t values[14] = {};
rc().get_radio_in(values, 14); rc().get_radio_in(values, ARRAY_SIZE(values));
struct log_RCIN pkt = { struct log_RCIN pkt = {
LOG_PACKET_HEADER_INIT(LOG_RCIN_MSG), LOG_PACKET_HEADER_INIT(LOG_RCIN_MSG),
time_us : AP_HAL::micros64(), time_us : AP_HAL::micros64(),