We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6109e1 + a6d1d66 commit 824e16dCopy full SHA for 824e16d
main.go
@@ -154,8 +154,8 @@ type DFUInterface struct {
154
// AsDiscoveryPort converts this DFUInterface into a discovery.Port
155
func (i *DFUInterface) AsDiscoveryPort() *discovery.Port {
156
props := properties.NewMap()
157
- props.Set("vid", fmt.Sprintf("%04X", i.VID))
158
- props.Set("pid", fmt.Sprintf("%04X", i.PID))
+ props.Set("vid", fmt.Sprintf("0x%04X", i.VID))
+ props.Set("pid", fmt.Sprintf("0x%04X", i.PID))
159
if i.SerialNumber != "" {
160
props.Set("serial", i.SerialNumber)
161
}
0 commit comments