Skip to content

Commit be098c4

Browse files
handle HID port address in get version
1 parent 37dbd30 commit be098c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (p *unoR4WifiPlugin) UploadCertificate(portAddress string, certificatePath
118118

119119
// GetFirmwareVersion retrieve the firmware version installed on the board
120120
func (p *unoR4WifiPlugin) GetFirmwareVersion(portAddress string, feedback *helper.PluginFeedback) (*semver.RelaxedVersion, error) {
121-
d, err := openFirstHID()
121+
d, err := openHID(portAddress) // if port is empty, fallback to vid+pid
122122
if err != nil {
123123
return nil, err
124124
}

0 commit comments

Comments
 (0)