diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py index 0a360657503f84..1e8f9a53f964f9 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py @@ -192,6 +192,9 @@ def convert_file(fname, board_id): line = lines[i] if line.startswith('resource'): a = line.split() + + if a[3] == 'NONE': + continue # function, number, pin pin = convert_pin(a[3]) resource = [ a[2] , pin, a[1].split('_')[0], a[1] ]