Skip to content

Commit

Permalink
Add ProtocolID check to SCM+ decoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Jul 10, 2016
1 parent 7de771c commit 8e98509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scmplus/scmplus.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (p Parser) Parse(indices []int) (msgs []parse.Message) {
scm := NewSCM(data)

// If the meter id is 0, bail.
if scm.EndpointID == 0 {
if scm.EndpointID == 0 || scm.ProtocolID != 0x1E {
continue
}

Expand Down

0 comments on commit 8e98509

Please sign in to comment.