Skip to content

Commit

Permalink
Copter: fix toy-mode build
Browse files Browse the repository at this point in the history
handle_message changed signature a few months ago but this is protected
by pragmas such that it is only ubild on SkyViper
  • Loading branch information
peterbarker authored and tridge committed Aug 19, 2019
1 parent 56c0866 commit 4b870d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/toy_mode.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4b870d7

Please sign in to comment.