From 94bbd2d69ade182bed087e8254515bb5f559285b Mon Sep 17 00:00:00 2001 From: Tomas Twardzik Date: Fri, 25 Apr 2025 20:20:17 +0200 Subject: [PATCH] [fix]reducing length of Geofence vilations to prevent STATUSTEXT message length overrun (#24719) --- .../HealthAndArmingChecks/checks/geofenceCheck.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/commander/HealthAndArmingChecks/checks/geofenceCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/geofenceCheck.cpp index a519856202..ceb8458721 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/geofenceCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/geofenceCheck.cpp @@ -61,7 +61,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter) events::Log::Error, "Geofence violation: exceeding maximum distance to Home"); if (reporter.mavlink_log_pub()) { - mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: exceeding maximum distance to Home"); + mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: exceeding maximum distance to Home"); } } @@ -77,7 +77,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter) events::Log::Error, "Geofence violation: exceeding maximum altitude above Home"); if (reporter.mavlink_log_pub()) { - mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: exceeding maximum altitude above Home"); + mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: exceeding maximum altitude above Home"); } } @@ -93,7 +93,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter) events::Log::Error, "Geofence violation: approaching or outside geofence"); if (reporter.mavlink_log_pub()) { - mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: approaching or outside geofence"); + mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: approaching or outside geofence"); } } }