Browse Source

Copter: fix toy-mode build

handle_message changed signature a few months ago but this is protected
by pragmas such that it is only ubild on SkyViper
master
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
4b870d752f
  1. 2
      ArduCopter/toy_mode.cpp

2
ArduCopter/toy_mode.cpp

@ -936,7 +936,7 @@ void ToyMode::handle_message(const mavlink_message_t &msg) @@ -936,7 +936,7 @@ void ToyMode::handle_message(const mavlink_message_t &msg)
return;
}
mavlink_named_value_int_t m;
mavlink_msg_named_value_int_decode(msg, &m);
mavlink_msg_named_value_int_decode(&msg, &m);
if (strncmp(m.name, "BLINKR", 10) == 0) {
red_blink_pattern = (uint16_t)m.value;
red_blink_count = m.value >> 16;

Loading…
Cancel
Save