From c20b20ec172ea6bcca10ba14a06919b9f432be5c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 30 Nov 2021 15:14:47 +1100 Subject: [PATCH] AC_Fence: void index when overwriting fence count on fencepoint-close --- libraries/AC_Fence/AC_PolyFence_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AC_Fence/AC_PolyFence_loader.cpp b/libraries/AC_Fence/AC_PolyFence_loader.cpp index a45abe9f89..a80a903248 100644 --- a/libraries/AC_Fence/AC_PolyFence_loader.cpp +++ b/libraries/AC_Fence/AC_PolyFence_loader.cpp @@ -1547,6 +1547,7 @@ void AC_PolyFence_loader::handle_msg_fence_point(GCS_MAVLINK &link, const mavlin fence_storage.write_uint8(inclusion_fence->storage_offset+1, packet.idx-1); // and write end of storage marker fence_storage.write_uint8(inclusion_fence->storage_offset+2+(packet.idx-1)*8, uint8_t(AC_PolyFenceType::END_OF_STORAGE)); + void_index(); } else { const FenceIndex *inclusion_fence = get_or_create_include_fence(); if (inclusion_fence == nullptr) {