Skip to content

Commit

Permalink
Correct Eui48 length to 4 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jun 14, 2019
1 parent 4c2adf6 commit e62fff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sunspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type Enum16 uint16
type Enum32 uint32

// An hardware address (like a MAC address) - see https://standards.ieee.org/develop/regauth/tut/eui48.pdf
type Eui48 [6]byte
type Eui48 [8]byte

// A 32bit IPv4 address (binary)
type Ipaddr [4]byte
Expand Down
2 changes: 1 addition & 1 deletion typelen/lengths.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
Count = 1
Enum16 = 1
Enum32 = 2
Eui48 = 3
Eui48 = 4
Float32 = 2
Int16 = 1
Int32 = 2
Expand Down

0 comments on commit e62fff9

Please sign in to comment.