Skip to content

Commit 005cf32

Browse files
authored
Add Serialize sp/dp time tagged
1 parent 5e49ccb commit 005cf32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asdu.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@ func (infoObj InfoObj) writeInfo(typeId TypeId, buf *bytes.Buffer) error {
223223
val := infoObj.Value.Value()
224224

225225
switch typeId {
226-
case M_SP_NA_1:
226+
case M_SP_NA_1, M_SP_TB_1:
227227
b |= 0x01 & byte(val)
228228
infoObj.writeSiqDiq(b, buf)
229229

230-
case M_DP_NA_1:
230+
case M_DP_NA_1, M_DP_TB_1:
231231
b |= 0x03 & byte(val)
232232
infoObj.writeSiqDiq(b, buf)
233233

0 commit comments

Comments
 (0)