AP_HAL_ChibiOS: chibios_hwdef: use ifndef pattern for AP_FETTEC_ONEWIRE_ENABLED

This commit is contained in:
Peter Barker 2021-11-23 15:58:21 +11:00 committed by Peter Barker
parent bd63ce3eb6
commit ee68072c62
1 changed files with 5 additions and 1 deletions

View File

@ -2568,8 +2568,12 @@ def add_apperiph_defaults(f):
#ifndef HAL_WATCHDOG_ENABLED_DEFAULT
#define HAL_WATCHDOG_ENABLED_DEFAULT true
#endif
#ifndef AP_FETTEC_ONEWIRE_ENABLED
#define AP_FETTEC_ONEWIRE_ENABLED 0
#endif
''')
# process input file
for fname in args.hwdef: