From 2e20e264035a21c870eefb5a3e2f28f1db104d03 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 8 Apr 2022 17:20:50 +1000 Subject: [PATCH] AP_HAL_ChibiOS: allow Volz protocol to be compiled out --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 478d4e537a..f67a6d04ec 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2774,6 +2774,10 @@ def add_apperiph_defaults(f): #define AP_AIRSPEED_AUTOCAL_ENABLE 0 #endif +#ifndef AP_VOLZ_ENABLED +#define AP_VOLZ_ENABLED 0 +#endif + ''')