From 54a4b7a98b0bd96b81bf1026d2b4fbafa62d3842 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 5 Jan 2023 08:41:28 +1100 Subject: [PATCH] GCS_MAVLink: use chibios_hwdef.py to disable fence on AP_Periph --- libraries/GCS_MAVLink/GCS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS.cpp b/libraries/GCS_MAVLink/GCS.cpp index 95ceadd3f5..aa9575f7a3 100644 --- a/libraries/GCS_MAVLink/GCS.cpp +++ b/libraries/GCS_MAVLink/GCS.cpp @@ -260,7 +260,7 @@ void GCS::update_sensor_status_flags() } #endif -#if !defined(HAL_BUILD_AP_PERIPH) && AP_FENCE_ENABLED +#if AP_FENCE_ENABLED const AC_Fence *fence = AP::fence(); if (fence != nullptr) { if (fence->sys_status_enabled()) {