mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 18:48:30 -04:00
AC_Fence: make invalid polygon vertex count clearer
This commit is contained in:
parent
c83da810da
commit
af92c9679f
@ -749,7 +749,7 @@ bool AC_PolyFence_loader::load_from_eeprom()
|
||||
boundary.points_lla = next_storage_point_lla;
|
||||
boundary.count = index.count;
|
||||
if (index.count < 3) {
|
||||
gcs().send_text(MAV_SEVERITY_WARNING, "AC_Fence: invalid polygon vertex count");
|
||||
gcs().send_text(MAV_SEVERITY_WARNING, "AC_Fence: invalid polygon vertex count %u", index.count);
|
||||
storage_valid = false;
|
||||
break;
|
||||
}
|
||||
@ -768,7 +768,7 @@ bool AC_PolyFence_loader::load_from_eeprom()
|
||||
boundary.points_lla = next_storage_point_lla;
|
||||
boundary.count = index.count;
|
||||
if (index.count < 3) {
|
||||
gcs().send_text(MAV_SEVERITY_WARNING, "AC_Fence: invalid polygon vertex count");
|
||||
gcs().send_text(MAV_SEVERITY_WARNING, "AC_Fence: invalid polygon vertex count %u", index.count);
|
||||
storage_valid = false;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user