Replace a lot of memset with {} initializers

This commit is contained in:
Matthias Grob
2019-10-15 14:57:38 +02:00
committed by Daniel Agar
parent b8f70e865c
commit e843090383
12 changed files with 35 additions and 80 deletions

View File

@@ -643,8 +643,7 @@ calibrate_return read_accelerometer_avg(int sensor_correction_sub, int (&subs)[m
}
unsigned counts[max_accel_sens] = { 0 };
float accel_sum[max_accel_sens][3];
memset(accel_sum, 0, sizeof(accel_sum));
float accel_sum[max_accel_sens][3] {};
unsigned errcount = 0;
struct sensor_correction_s sensor_correction; /**< sensor thermal corrections */