forked from Archive/PX4-Autopilot
mavlink: when detecting spoof, be more verbose
This commit is contained in:
parent
36d8d73aeb
commit
58aa9f28f0
|
@ -241,7 +241,8 @@ MavlinkReceiver::handle_message_command_long(mavlink_message_t *msg)
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (msg->sysid == mavlink_system.sysid && msg->compid == mavlink_system.compid) {
|
if (msg->sysid == mavlink_system.sysid && msg->compid == mavlink_system.compid) {
|
||||||
warnx("ignoring CMD spoofed with same SYS/COMP ID");
|
warnx("ignoring CMD spoofed with same SYS/COMP (%d/%d) ID",
|
||||||
|
mavlink_system.sysid, mavlink_system.compid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue