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_NAK: return "ERR: NAK received";
|
||||||
case RESULT_ERR_NO_SIGNAL: return "ERR: no signal";
|
case RESULT_ERR_NO_SIGNAL: return "ERR: no signal";
|
||||||
case RESULT_ERR_SYN: return "ERR: SYN received";
|
case RESULT_ERR_SYN: return "ERR: SYN received";
|
||||||
|
case RESULT_ERR_NOTAUTHORIZED: return "ERR: not authorized";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (resultCode >= 0) {
|
if (resultCode >= 0) {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ enum result_t {
|
|||||||
RESULT_ERR_MISSING_TYPE = -14, //!< missing data type
|
RESULT_ERR_MISSING_TYPE = -14, //!< missing data type
|
||||||
RESULT_ERR_INVALID_LIST = -15, //!< invalid value list
|
RESULT_ERR_INVALID_LIST = -15, //!< invalid value list
|
||||||
RESULT_ERR_DUPLICATE = -16, //!< duplicate entry
|
RESULT_ERR_DUPLICATE = -16, //!< duplicate entry
|
||||||
RESULT_ERR_DUPLICATE_NAME = -17,//!< duplicate entry (name)
|
RESULT_ERR_DUPLICATE_NAME = -17, //!< duplicate entry (name)
|
||||||
|
|
||||||
RESULT_ERR_BUS_LOST = -18, //!< arbitration lost
|
RESULT_ERR_BUS_LOST = -18, //!< arbitration lost
|
||||||
RESULT_ERR_CRC = -19, //!< CRC error
|
RESULT_ERR_CRC = -19, //!< CRC error
|
||||||
@@ -62,6 +62,8 @@ enum result_t {
|
|||||||
|
|
||||||
RESULT_ERR_NO_SIGNAL = -22, //!< no signal found on the bus
|
RESULT_ERR_NO_SIGNAL = -22, //!< no signal found on the bus
|
||||||
RESULT_ERR_SYN = -23, //!< SYN received instead of answer
|
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