AC_PolyFence_loader: log fence on sucsesful write

This commit is contained in:
Iampete1 2021-11-13 13:59:09 +00:00 committed by Andrew Tridgell
parent d020dd2923
commit 3d5bbb72ab
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@
#include <AP_AHRS/AP_AHRS.h>
#include <GCS_MAVLink/GCS.h>
#include <AP_Logger/AP_Logger.h>
#include <stdio.h>
@ -1180,6 +1181,9 @@ bool AC_PolyFence_loader::write_fence(const AC_PolyFenceItem *new_items, uint16_
gcs().send_text(MAV_SEVERITY_DEBUG, "Fence Indexed OK");
#endif
// start logger logging new fence
AP::logger().Write_Fence();
void_index();
// this may be completely bogus total. If we are storing an