From e50f3ad4f209f795872e67ee56f4f998a359c9a1 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 24 Mar 2016 14:18:49 +0100 Subject: [PATCH] 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. --- src/drivers/uart_esc/uart_esc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/uart_esc/uart_esc.cpp b/src/drivers/uart_esc/uart_esc.cpp index 733e3c99ee..3d363a2032 100644 --- a/src/drivers/uart_esc/uart_esc.cpp +++ b/src/drivers/uart_esc/uart_esc.cpp @@ -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) {