added RESULT_ERR_NO_SIGNAL

This commit is contained in:
john30
2014-12-27 12:36:12 +01:00
parent 259fb11051
commit 81ecb0b89d
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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";
+2
View File
@@ -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;