AP_GPS: use proper macro in array sizes

This commit is contained in:
Francisco Ferreira 2019-03-07 21:30:37 +00:00 committed by Randy Mackay
parent 75527ef567
commit 09c210e10f
1 changed files with 2 additions and 2 deletions

View File

@ -461,8 +461,8 @@ private:
uint16_t delta_time_ms; uint16_t delta_time_ms;
}; };
// Note allowance for an additional instance to contain blended data // Note allowance for an additional instance to contain blended data
GPS_timing timing[GPS_MAX_RECEIVERS+1]; GPS_timing timing[GPS_MAX_INSTANCES];
GPS_State state[GPS_MAX_RECEIVERS+1]; GPS_State state[GPS_MAX_INSTANCES];
AP_GPS_Backend *drivers[GPS_MAX_RECEIVERS]; AP_GPS_Backend *drivers[GPS_MAX_RECEIVERS];
AP_HAL::UARTDriver *_port[GPS_MAX_RECEIVERS]; AP_HAL::UARTDriver *_port[GPS_MAX_RECEIVERS];