Added hw suport error

This commit is contained in:
Matthias Fulz 2022-04-10 02:15:25 +02:00
parent fdc0878438
commit a293e6aa8a
1 changed files with 3 additions and 0 deletions

View File

@ -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: