Skip to content

Commit

Permalink
Adds missing fields after PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 committed Jan 24, 2024
1 parent 9265404 commit 60a743a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ class FieldType(Enum):
"vtx_mosi": FieldType.OUTPUT,
"vtx_sck": FieldType.OUTPUT,
"vtx_amp_vpd_25mW": FieldType.ARRAY,
"vtx_amp_vpd_100mW": FieldType.ARRAY
"vtx_amp_vpd_100mW": FieldType.ARRAY,
"vtx_amp_pwm_25mW": FieldType.ARRAY,
"vtx_amp_pwm_100mW": FieldType.ARRAY
}

field_groups = {
Expand Down Expand Up @@ -181,7 +183,7 @@ class FieldType(Enum):
def ignore_undef_pins(pair):
key, value = pair
# FIXME, <0 should really be -1, but I used -pin number to mean inverted for the backlight
if hardware_fields[key].value > FieldType.PIN.value and value < 0:
if key in hardware_fields and hardware_fields[key].value > FieldType.PIN.value and value < 0:
return False
else:
return True
Expand Down

0 comments on commit 60a743a

Please sign in to comment.