Skip to content

Commit

Permalink
fixing iec104 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Mar 4, 2024
1 parent adc04b6 commit ce7ce90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conpot/protocols/IEC104/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class IOA(Packet):
class QOS(Packet):
# Quality of set-point command
name = "QOS"
fields_desc = [XBitField("S/E", 0, 1), XBitField("QL", 0, 7)]
fields_desc = [XBitField("seq", 0, 1), XBitField("QL", 0, 7)] # seq used to be S/E, threw an error


class QDS(Packet):
Expand Down Expand Up @@ -372,7 +372,7 @@ class SPE(Packet):
XBitField("SRD", 0, 1),
XBitField("SIE", 0, 1),
XBitField("SL3", 0, 1),
XBitField("SL2", 0, 1),
# XBitField("SL2", 0, 1), Duplicate field, commented
XBitField("SL2", 0, 1),
XBitField("GS", 0, 1),
]
Expand Down

0 comments on commit ce7ce90

Please sign in to comment.