mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:47:35 +08:00
uORB::Subscription minor API cleanup
* the forceInit() method was combined with the existing subscribe() * delete unused last_update()
This commit is contained in:
@@ -4290,7 +4290,7 @@ Commander::offboard_control_update(bool &status_changed)
|
||||
|
||||
if (commander_state_s::MAIN_STATE_OFFBOARD) {
|
||||
if (offboard_control_mode.timestamp == 0) {
|
||||
_offboard_control_mode_sub.forceInit();
|
||||
_offboard_control_mode_sub.subscribe();
|
||||
force_update = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user