Sub: pass format string through to check_failed

This commit is contained in:
Peter Barker 2019-08-05 12:52:33 +10:00 committed by Peter Barker
parent b7b67f523d
commit 6347febc9a

View File

@ -332,7 +332,7 @@ void Sub::failsafe_gcs_check()
// Send a warning every 30 seconds
if (tnow - failsafe.last_gcs_warn_ms > 30000) {
failsafe.last_gcs_warn_ms = tnow;
gcs().send_text(MAV_SEVERITY_WARNING, "MYGCS: %d, heartbeat lost", g.sysid_my_gcs);
gcs().send_text(MAV_SEVERITY_WARNING, "MYGCS: %u, heartbeat lost", g.sysid_my_gcs.get());
}
// do nothing if we have already triggered the failsafe action, or if the motors are disarmed