Skip to content

Commit

Permalink
Adjust UDI string formatting (productID is no longer a whole byte)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lublin <daniel@lublin.se>
  • Loading branch information
quite committed Jan 9, 2023
1 parent 86d0ef3 commit 51c774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tk1/tk1.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (u *UDI) RawBytes() []byte {
}

func (u *UDI) String() string {
return fmt.Sprintf("%01x%04x:%02x:%01x:%08x",
return fmt.Sprintf("%01x%04x:%x:%x:%08x",
u.Unnamed, u.VendorID, u.ProductID, u.ProductRevision, u.Serial)
}

Expand Down

0 comments on commit 51c774a

Please sign in to comment.