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:
Mark Charlebois
2015-04-21 22:04:01 -07:00
parent 3f7d4de74a
commit da29004a26
3 changed files with 35 additions and 65 deletions
+4
View File
@@ -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];