diff options
Diffstat (limited to 'apps/sensors')
-rw-r--r-- | apps/sensors/sensors.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index b84b58406..2ab1a9203 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -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; |