Skip to content

Commit 94bbd2d

Browse files
[fix]reducing length of Geofence vilations to prevent STATUSTEXT message length overrun (PX4#24719)
1 parent 8e89906 commit 94bbd2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/commander/HealthAndArmingChecks/checks/geofenceCheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter)
6161
events::Log::Error, "Geofence violation: exceeding maximum distance to Home");
6262

6363
if (reporter.mavlink_log_pub()) {
64-
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: exceeding maximum distance to Home");
64+
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: exceeding maximum distance to Home");
6565
}
6666
}
6767

@@ -77,7 +77,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter)
7777
events::Log::Error, "Geofence violation: exceeding maximum altitude above Home");
7878

7979
if (reporter.mavlink_log_pub()) {
80-
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: exceeding maximum altitude above Home");
80+
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: exceeding maximum altitude above Home");
8181
}
8282
}
8383

@@ -93,7 +93,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter)
9393
events::Log::Error, "Geofence violation: approaching or outside geofence");
9494

9595
if (reporter.mavlink_log_pub()) {
96-
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: approaching or outside geofence");
96+
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: approaching or outside geofence");
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)