added RESULT_ERR_NO_SIGNAL
This commit is contained in:
@@ -48,6 +48,7 @@ const char* getResultCode(result_t resultCode) {
|
||||
case RESULT_ERR_CRC: return "ERR: CRC error";
|
||||
case RESULT_ERR_ACK: return "ERR: ACK error";
|
||||
case RESULT_ERR_NAK: return "ERR: NAK received";
|
||||
case RESULT_ERR_NO_SIGNAL: return "ERR: no signal";
|
||||
default:
|
||||
if (resultCode >= 0)
|
||||
return "success: unknown result code";
|
||||
|
||||
@@ -51,6 +51,8 @@ static const int RESULT_ERR_CRC = -18; //!< CRC error
|
||||
static const int RESULT_ERR_ACK = -19; //!< ACK error
|
||||
static const int RESULT_ERR_NAK = -20; //!< NAK received
|
||||
|
||||
static const int RESULT_ERR_NO_SIGNAL = -21; //!< no signal found on the bus
|
||||
|
||||
/** type for result code. */
|
||||
typedef int result_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user