Added hw suport error
This commit is contained in:
parent
fdc0878438
commit
a293e6aa8a
|
@ -9,6 +9,7 @@ const (
|
|||
QENC_ERR_NOT_ALLOWED QEncErr = 0x03
|
||||
QENC_ERR_INVALID QEncErr = 0x04
|
||||
QENC_ERR_RETRY QEncErr = 0x05
|
||||
QENC_ERR_HW_SUPPORT QEncErr = 0x06
|
||||
// device retry timeout
|
||||
QENC_ERR_TIMEOUT QEncErr = 0xFF
|
||||
)
|
||||
|
@ -29,6 +30,8 @@ func (e *QEncError) Error() string {
|
|||
return "Invalid data"
|
||||
case QENC_ERR_RETRY:
|
||||
return "Retry request"
|
||||
case QENC_ERR_HW_SUPPORT:
|
||||
return "Not supported by hardware"
|
||||
case QENC_ERR_TIMEOUT:
|
||||
return "Timeout reached"
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue