Skip to content

Commit

Permalink
Add scalefactor unimplemented check
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jul 19, 2019
1 parent 06565dc commit 8702bf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions impl/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ func (p *point) NotImplemented() bool {
binary.BigEndian.Uint16(v[4:]) == uint16(math.MaxUint16) {
notImplemented = true
}
case sunspec.ScaleFactor:
if int16(v) == int16(math.MinInt16) {
notImplemented = true
}
}

return notImplemented
Expand Down

0 comments on commit 8702bf6

Please sign in to comment.