diff --git a/kvmd/apps/kvmd/switch/proto.py b/kvmd/apps/kvmd/switch/proto.py index d4f43f84..43da118f 100644 --- a/kvmd/apps/kvmd/switch/proto.py +++ b/kvmd/apps/kvmd/switch/proto.py @@ -94,6 +94,7 @@ class UnitFlags: changing_busy: bool flashing_busy: bool has_downlink: bool + has_hpd: bool @dataclasses.dataclass(frozen=True) @@ -137,6 +138,7 @@ class UnitState(Unpackable): # pylint: disable=too-many-instance-attributes changing_busy=bool(flags & 0x80), flashing_busy=bool(flags & 0x40), has_downlink=bool(flags & 0x02), + has_hpd=bool(flags & 0x04), ), ch=ch, beacons=cls.__make_flags6(beacons), diff --git a/kvmd/apps/kvmd/switch/state.py b/kvmd/apps/kvmd/switch/state.py index e49d0062..5b06db0a 100644 --- a/kvmd/apps/kvmd/switch/state.py +++ b/kvmd/apps/kvmd/switch/state.py @@ -49,7 +49,7 @@ class _UnitInfo: # ===== class StateCache: # pylint: disable=too-many-instance-attributes - __FW_VERSION = 5 + __FW_VERSION = 6 __FULL = 0xFFFF __SUMMARY = 0x01 diff --git a/switch/switch.uf2 b/switch/switch.uf2 index c3f37491..c6581ab9 100644 Binary files a/switch/switch.uf2 and b/switch/switch.uf2 differ diff --git a/testenv/linters/vulture-wl.py b/testenv/linters/vulture-wl.py index 32cfdf88..3f37e4ac 100644 --- a/testenv/linters/vulture-wl.py +++ b/testenv/linters/vulture-wl.py @@ -67,6 +67,7 @@ Nak.BUSY Nak.NO_DOWNLINK Nak.DOWNLINK_OVERFLOW UnitFlags.flashing_busy +UnitFlags.has_hpd StateCache.get_port_names StateCache.get_atx_cp_delays StateCache.get_atx_cpl_delays