mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Replace a lot of memset with {} initializers
This commit is contained in:
committed by
Daniel Agar
parent
b8f70e865c
commit
e843090383
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user