mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 14:17:20 +08:00
uart_esc: do an additional advertise
If this is not done, the aDSP crashes, not quite sure why but it's gotta be something about the context of the callback.
This commit is contained in:
@@ -368,6 +368,9 @@ void task_main(int argc, char *argv[])
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO XXX: this is needed otherwise we crash in the callback context.
|
||||
_rc_pub = orb_advertise(ORB_ID(input_rc), &_rc);
|
||||
|
||||
// Main loop
|
||||
while (!_task_should_exit) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user