Skip to content
Snippets Groups Projects
Commit 49f96072 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Snapdragon RC pwm: Only reserve one MAVLink buffer

parent 001a2c01
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ px4_add_module(
MAIN snapdragon_rc_pwm
COMPILE_FLAGS
-Os
-DMAVLINK_COMM_NUM_BUFFERS=1
SRCS
snapdragon_rc_pwm.cpp
DEPENDS
......
......@@ -52,6 +52,7 @@
#include <termios.h>
#include <uORB/topics/input_rc.h>
#include <uORB/topics/actuator_controls.h>
#include <v1.0/mavlink_types.h>
#include <v1.0/common/mavlink.h>
......@@ -155,7 +156,7 @@ void task_main(int argc, char *argv[])
mavlink_message_t msg;
for (int i = 0; i < len; ++i) {
if (mavlink_parse_char(MAVLINK_COMM_1, serial_buf[i], &msg, &serial_status)) {
if (mavlink_parse_char(MAVLINK_COMM_0, serial_buf[i], &msg, &serial_status)) {
// have a message, handle it
handle_message(&msg);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment