AP_InertialSensor: fixed build warning

This commit is contained in:
Andrew Tridgell 2021-07-26 14:38:10 +10:00 committed by Randy Mackay
parent 882472f25b
commit 9966c62ae3
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) 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; start_tmax = tcal.temp_max;
accel_start.zero(); accel_start.zero();
for (uint8_t i=0; i<ARRAY_SIZE(state); i++) { for (uint8_t i=0; i<ARRAY_SIZE(state); i++) {