switch firmware version == 6

This commit is contained in:
Maxim Devaev 2025-02-13 00:56:11 +02:00
parent 4b67208cab
commit 8c7f86ac83
4 changed files with 4 additions and 1 deletions

View File

@ -94,6 +94,7 @@ class UnitFlags:
changing_busy: bool changing_busy: bool
flashing_busy: bool flashing_busy: bool
has_downlink: bool has_downlink: bool
has_hpd: bool
@dataclasses.dataclass(frozen=True) @dataclasses.dataclass(frozen=True)
@ -137,6 +138,7 @@ class UnitState(Unpackable): # pylint: disable=too-many-instance-attributes
changing_busy=bool(flags & 0x80), changing_busy=bool(flags & 0x80),
flashing_busy=bool(flags & 0x40), flashing_busy=bool(flags & 0x40),
has_downlink=bool(flags & 0x02), has_downlink=bool(flags & 0x02),
has_hpd=bool(flags & 0x04),
), ),
ch=ch, ch=ch,
beacons=cls.__make_flags6(beacons), beacons=cls.__make_flags6(beacons),

View File

@ -49,7 +49,7 @@ class _UnitInfo:
# ===== # =====
class StateCache: # pylint: disable=too-many-instance-attributes class StateCache: # pylint: disable=too-many-instance-attributes
__FW_VERSION = 5 __FW_VERSION = 6
__FULL = 0xFFFF __FULL = 0xFFFF
__SUMMARY = 0x01 __SUMMARY = 0x01

Binary file not shown.

View File

@ -67,6 +67,7 @@ Nak.BUSY
Nak.NO_DOWNLINK Nak.NO_DOWNLINK
Nak.DOWNLINK_OVERFLOW Nak.DOWNLINK_OVERFLOW
UnitFlags.flashing_busy UnitFlags.flashing_busy
UnitFlags.has_hpd
StateCache.get_port_names StateCache.get_port_names
StateCache.get_atx_cp_delays StateCache.get_atx_cp_delays
StateCache.get_atx_cpl_delays StateCache.get_atx_cpl_delays