forked from Archive/PX4-Autopilot
SF10A driver fix
This commit is contained in:
parent
eabc4647c2
commit
993831aba8
|
@ -572,12 +572,13 @@ SF10A::start()
|
||||||
work_queue(HPWORK, &_work, (worker_t)&SF10A::cycle_trampoline, this, 5);
|
work_queue(HPWORK, &_work, (worker_t)&SF10A::cycle_trampoline, this, 5);
|
||||||
|
|
||||||
/* notify about state change */
|
/* notify about state change */
|
||||||
struct subsystem_info_s info = {
|
struct subsystem_info_s info = {};
|
||||||
true,
|
info.present = true;
|
||||||
true,
|
info.enabled = true;
|
||||||
true,
|
info.ok = true;
|
||||||
subsystem_info_s::SUBSYSTEM_TYPE_RANGEFINDER
|
info.subsystem_type = subsystem_info_s::SUBSYSTEM_TYPE_RANGEFINDER;
|
||||||
};
|
|
||||||
|
|
||||||
static orb_advert_t pub = nullptr;
|
static orb_advert_t pub = nullptr;
|
||||||
|
|
||||||
if (pub != nullptr) {
|
if (pub != nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue