GCS_MAVLink: use chibios_hwdef.py to disable fence on AP_Periph

This commit is contained in:
Peter Barker 2023-01-05 08:41:28 +11:00 committed by Andrew Tridgell
parent 28592269ff
commit 54a4b7a98b

View File

@ -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()) {