AP_InertialSensor: fixed build warning

This commit is contained in:
Andrew Tridgell 2021-07-26 14:38:10 +10:00
parent 243dc06fd4
commit 0f3dc195b6
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ void AP_InertialSensor::TCal::update_gyro_learning(const Vector3f &gyro, float t
*/
void AP_InertialSensor::TCal::Learn::reset(float temperature)
{
memset(state, 0, sizeof(state));
memset((void*)&state[0], 0, sizeof(state));
start_tmax = tcal.temp_max;
accel_start.zero();
for (uint8_t i=0; i<ARRAY_SIZE(state); i++) {