Initialized all sensor fields to zero

This commit is contained in:
Lorenz Meier 2012-10-17 15:10:32 +02:00
parent d4e6a9d7a1
commit e4645c0a41
1 changed files with 1 additions and 0 deletions

View File

@ -993,6 +993,7 @@ Sensors::task_main()
* do advertisements
*/
struct sensor_combined_s raw;
memset(&raw, 0, sizeof(raw));
raw.timestamp = hrt_absolute_time();
raw.battery_voltage_v = BAT_VOL_INITIAL;
raw.adc_voltage_v[0] = 0.9f;