Skip to content

Commit 51c774a

Browse files
committed
Adjust UDI string formatting (productID is no longer a whole byte)
Signed-off-by: Daniel Lublin <daniel@lublin.se>
1 parent 86d0ef3 commit 51c774a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tk1/tk1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (u *UDI) RawBytes() []byte {
171171
}
172172

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

0 commit comments

Comments
 (0)