Merge branch 'usb' into v1

This commit is contained in:
Cristian Maglie
2017-02-04 00:56:12 +01:00
13 changed files with 1043 additions and 3 deletions

View File

@@ -123,6 +123,8 @@ const (
ErrorEnumeratingPorts
// PortClosed the port has been closed while the operation is in progress
PortClosed
// FunctionNotImplemented the requested function is not implemented
FunctionNotImplemented
)
// EncodedErrorString returns a string explaining the error code
@@ -148,6 +150,8 @@ func (e PortError) EncodedErrorString() string {
return "Could not enumerate serial ports"
case PortClosed:
return "Port has been closed"
case FunctionNotImplemented:
return "Function not implemented"
default:
return "Other error"
}