mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 21:33:33 +08:00
spektrum_rc: fix ugly pointers in function args
This commit is contained in:
@@ -118,7 +118,7 @@ void task_main(int argc, char *argv[])
|
|||||||
continue;
|
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) {
|
if (newbytes < 0) {
|
||||||
PX4_WARN("read failed");
|
PX4_WARN("read failed");
|
||||||
@@ -139,7 +139,7 @@ void task_main(int argc, char *argv[])
|
|||||||
uint16_t raw_rc_count;
|
uint16_t raw_rc_count;
|
||||||
|
|
||||||
// parse new data
|
// 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);
|
&dsm_11_bit, &frame_drops, input_rc_s::RC_INPUT_MAX_CHANNELS);
|
||||||
UNUSED(dsm_11_bit);
|
UNUSED(dsm_11_bit);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user