Skip to content

Commit

Permalink
Merge pull request #600 from FozzieUK/patch-3
Browse files Browse the repository at this point in the history
Fixes firmware version for H1 (G1)
  • Loading branch information
canton7 authored Apr 24, 2024
2 parents 7fb80e2 + 6e76097 commit 1e5ddef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _master_version(address: list[ModbusAddressSpec], is_hex: bool) -> ModbusVer

yield _master_version(
address=[
ModbusAddressSpec(input=11016, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(input=10016, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(holding=30016, models=Inv.H1_G1 | Inv.H1_LAN | Inv.H3_SET),
],
is_hex=False,
Expand All @@ -82,7 +82,7 @@ def _slave_version(address: list[ModbusAddressSpec], is_hex: bool) -> ModbusVers

yield _slave_version(
address=[
ModbusAddressSpec(input=11017, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(input=10017, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(holding=30017, models=Inv.H1_G1 | Inv.H1_LAN | Inv.H3_SET),
],
is_hex=False,
Expand All @@ -106,7 +106,7 @@ def _manager_version(address: list[ModbusAddressSpec], is_hex: bool) -> ModbusVe

yield _manager_version(
address=[
ModbusAddressSpec(input=11018, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(input=10018, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(holding=30018, models=Inv.H1_G1 | Inv.H1_LAN),
],
is_hex=False,
Expand Down

0 comments on commit 1e5ddef

Please sign in to comment.