mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Fix -Werror=maybe-uninitialized on GCC7
This commit is contained in:
committed by
Julian Oes
parent
06c6a0cdec
commit
407b403e68
@@ -462,7 +462,7 @@ calibrate_return do_accel_calibration_measurements(orb_advert_t *mavlink_log_pub
|
||||
worker_data.subs[i] = -1;
|
||||
}
|
||||
|
||||
uint64_t timestamps[max_accel_sens];
|
||||
uint64_t timestamps[max_accel_sens] = {};
|
||||
|
||||
// We should not try to subscribe if the topic doesn't actually exist and can be counted.
|
||||
const unsigned orb_accel_count = orb_group_count(ORB_ID(sensor_accel));
|
||||
|
||||
Reference in New Issue
Block a user