From 0cc5cf7d2d8f583f497b99052175bd54f810eac0 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 0a36065750..1e8f9a53f9 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 @@ define STORAGE_FLASH_PAGE 1 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] ]