Skip to content

Commit

Permalink
Merge pull request #18 from altendky/feature/SC-142/static_modbus_pre…
Browse files Browse the repository at this point in the history
…pare_sunspec_code

Feature SC-142 static modbus prepare sunspec code
  • Loading branch information
gordon-epc committed Jul 19, 2021
2 parents 5559688 + dec435e commit 418904a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/epcpm/importexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import epcpm.project
import epcpm.smdxtosunspec
import epcpm.sunspecmodel
import epcpm.sunspecmodel
import epcpm.sunspectobitfieldsc
import epcpm.sunspectotablesc
import epcpm.sunspectomanualc
Expand Down
1 change: 1 addition & 0 deletions src/epcpm/parameterstointerface.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def gen(self):
"InterfaceItem",
var_or_func,
types[parameter.internal_type].name,
"sunspec",
sunspec_type,
]

Expand Down
4 changes: 2 additions & 2 deletions src/epcpm/sunspectobitfieldsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def gen(self):
[ # TODO: generate a real complete common initializer
f".sunspec = {{",
[
f".getter = InterfaceItem_bitfield_{bit_length}_getter,",
f".setter = InterfaceItem_bitfield_{bit_length}_setter,",
f".getter = InterfaceItem_bitfield_{bit_length}_sunspec_getter,",
f".setter = InterfaceItem_bitfield_{bit_length}_sunspec_setter,",
f".variable = &sunspecInterface.model{model:05}.{parameter.abbreviation},",
],
f"}},",
Expand Down

0 comments on commit 418904a

Please sign in to comment.