AP_HAL_ChibiOS: allow betaflight converter to run on output from "dump hardware"

This commit is contained in:
Andy Piper 2023-12-02 15:55:54 +00:00 committed by Andrew Tridgell
parent 6e417f1d0c
commit 0cc5cf7d2d
1 changed files with 3 additions and 0 deletions

View File

@ -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] ]