AC_Fence: make invalid polygon vertex count clearer

This commit is contained in:
Peter Barker 2021-11-30 13:46:36 +11:00 committed by Andrew Tridgell
parent c83da810da
commit af92c9679f

View File

@ -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;
}