From 6347febc9a69074024376d0df4f6ebf6d0fb329d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 5 Aug 2019 12:52:33 +1000 Subject: [PATCH] Sub: pass format string through to check_failed --- ArduSub/failsafe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/failsafe.cpp b/ArduSub/failsafe.cpp index 1453acc05b..23339793fc 100644 --- a/ArduSub/failsafe.cpp +++ b/ArduSub/failsafe.cpp @@ -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