Adjust parse to remove L or H from clock name.
This commit is contained in:
parent
ace4204d2a
commit
7a7b14ed4b
2
parse.py
2
parse.py
@ -976,6 +976,8 @@ def parse_rcc_regs():
|
|||||||
if key.startswith("fieldset/A") and key.endswith("ENR"):
|
if key.startswith("fieldset/A") and key.endswith("ENR"):
|
||||||
clock = removesuffix(key, "ENR")
|
clock = removesuffix(key, "ENR")
|
||||||
clock = removeprefix(clock, "fieldset/")
|
clock = removeprefix(clock, "fieldset/")
|
||||||
|
clock = removesuffix(clock, "L")
|
||||||
|
clock = removesuffix(clock, "H")
|
||||||
for field in body['fields']:
|
for field in body['fields']:
|
||||||
if field['name'].endswith('EN'):
|
if field['name'].endswith('EN'):
|
||||||
peri = removesuffix(field['name'], 'EN')
|
peri = removesuffix(field['name'], 'EN')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user