From 402e2ec611ebb3bc18ecbc2193ab3b3d654283a6 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 5 Dec 2016 14:07:11 +0100 Subject: [PATCH] spektrum_rc: fix ugly pointers in function args --- src/drivers/spektrum_rc/spektrum_rc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/spektrum_rc/spektrum_rc.cpp b/src/drivers/spektrum_rc/spektrum_rc.cpp index 64df54d2a3..b381f6d57f 100644 --- a/src/drivers/spektrum_rc/spektrum_rc.cpp +++ b/src/drivers/spektrum_rc/spektrum_rc.cpp @@ -118,7 +118,7 @@ void task_main(int argc, char *argv[]) continue; } - int newbytes = ::read(uart_fd, &rx_buf[0], sizeof(rx_buf)); + int newbytes = ::read(uart_fd, rx_buf, sizeof(rx_buf)); if (newbytes < 0) { PX4_WARN("read failed"); @@ -139,7 +139,7 @@ void task_main(int argc, char *argv[]) uint16_t raw_rc_count; // parse new data - bool rc_updated = dsm_parse(now, rx_buf, newbytes, &raw_rc_values[0], &raw_rc_count, + bool rc_updated = dsm_parse(now, rx_buf, newbytes, raw_rc_values, &raw_rc_count, &dsm_11_bit, &frame_drops, input_rc_s::RC_INPUT_MAX_CHANNELS); UNUSED(dsm_11_bit);