uORB::Subscription minor API cleanup

* the forceInit() method was combined with the existing subscribe()
 * delete unused last_update()
This commit is contained in:
Daniel Agar
2019-08-06 10:28:49 -04:00
committed by GitHub
parent cfba41d2f4
commit 8f5b7de498
10 changed files with 71 additions and 66 deletions
@@ -50,7 +50,7 @@ MavlinkOrbSubscription::is_published()
} else if (!published && _subscribe_from_beginning) {
// For some topics like vehicle_command_ack, we want to subscribe
// from the beginning in order not to miss or delay the first publish respective advertise.
return _sub.forceInit();
return _sub.subscribe();
}
return false;