fix hc_sr04 and srf02_i2c subsystem_info init

This commit is contained in:
Daniel Agar
2016-04-17 19:02:59 +02:00
committed by Lorenz Meier
parent 20a59b8886
commit a0b818096b
2 changed files with 12 additions and 13 deletions
+6 -6
View File
@@ -659,12 +659,12 @@ HC_SR04::start()
/* notify about state change */
struct subsystem_info_s info = {
true,
true,
true,
SUBSYSTEM_TYPE_RANGEFINDER
};
struct subsystem_info_s info = {};
info.present = true;
info.enabled = true;
info.ok = true;
info.subsystem_type = SUBSYSTEM_TYPE_RANGEFINDER;
static orb_advert_t pub = nullptr;
if (pub != nullptr) {