added not authorized code
This commit is contained in:
@@ -49,6 +49,7 @@ const char* getResultCode(result_t resultCode) {
|
||||
case RESULT_ERR_NAK: return "ERR: NAK received";
|
||||
case RESULT_ERR_NO_SIGNAL: return "ERR: no signal";
|
||||
case RESULT_ERR_SYN: return "ERR: SYN received";
|
||||
case RESULT_ERR_NOTAUTHORIZED: return "ERR: not authorized";
|
||||
|
||||
default:
|
||||
if (resultCode >= 0) {
|
||||
|
||||
@@ -62,6 +62,8 @@ enum result_t {
|
||||
|
||||
RESULT_ERR_NO_SIGNAL = -22, //!< no signal found on the bus
|
||||
RESULT_ERR_SYN = -23, //!< SYN received instead of answer
|
||||
|
||||
RESULT_ERR_NOTAUTHORIZED = -24 //!< not authorized for this action
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user