Adjust parse to remove L or H from clock name.

This commit is contained in:
Bob McWhirter 2021-07-09 09:32:55 -04:00
parent ace4204d2a
commit 7a7b14ed4b

View File

@ -976,6 +976,8 @@ def parse_rcc_regs():
if key.startswith("fieldset/A") and key.endswith("ENR"):
clock = removesuffix(key, "ENR")
clock = removeprefix(clock, "fieldset/")
clock = removesuffix(clock, "L")
clock = removesuffix(clock, "H")
for field in body['fields']:
if field['name'].endswith('EN'):
peri = removesuffix(field['name'], 'EN')