mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:53:33 +08:00
Sync state_machine_helper_posix to state_machine_helper
state_machine_helper_posix.cpp was out of sync with state_machine_helper_posix.cpp. Added debug to detect when sensors is started before uorb. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -2152,6 +2152,10 @@ Sensors::task_main()
|
||||
/* advertise the sensor_combined topic and make the initial publication */
|
||||
_sensor_pub = orb_advertise(ORB_ID(sensor_combined), &raw);
|
||||
|
||||
if (_sensor_pub < 0) {
|
||||
warnx("Sensors::task_main ERROR - uORB not started");
|
||||
}
|
||||
|
||||
/* wakeup source(s) */
|
||||
struct pollfd fds[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user