HAL_ChibiOS: default to max 1 rangefinder in periph

This commit is contained in:
Andrew Tridgell 2022-12-30 16:04:22 +11:00
parent a89d5e1c83
commit 673aa5ceb7
1 changed files with 4 additions and 0 deletions

View File

@ -2964,6 +2964,10 @@ def add_apperiph_defaults(f):
#ifndef AP_BATT_MONITOR_MAX_INSTANCES
#define AP_BATT_MONITOR_MAX_INSTANCES 1
#endif
#ifndef RANGEFINDER_MAX_INSTANCES
#define RANGEFINDER_MAX_INSTANCES 1
#endif
''')
def add_bootloader_defaults(f):