rangefinders : remove annoying gotos

This commit is contained in:
Kabir Mohammed
2015-10-28 22:38:38 +01:00
committed by Lorenz Meier
parent 83b70688d7
commit 792f1747c7
6 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ SF0X::init()
_class_instance = register_class_devname(RANGE_FINDER_BASE_DEVICE_PATH);
/* get a publish handle on the range finder topic */
struct distance_sensor_s ds_report;
struct distance_sensor_s ds_report = {};
_distance_sensor_topic = orb_advertise_multi(ORB_ID(distance_sensor), &ds_report,
&_orb_class_instance, ORB_PRIO_HIGH);