From 9a9fc76487309a4880a7a538c9c365ed5eb42f65 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 2 Dec 2023 15:55:54 +0000 Subject: [PATCH] AP_HAL_ChibiOS: allow betaflight converter to run on output from "dump hardware" --- .../AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py | 3 +++ 1 file changed, 3 insertions(+) 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] ]