diff --git a/idDHT11.h b/idDHT11.h index 384cc44..ea39613 100644 --- a/idDHT11.h +++ b/idDHT11.h @@ -21,17 +21,19 @@ #define IDDHT11LIB_VERSION "0.1" // state codes -#define IDDHTLIB_OK 0 +#define IDDHTLIB_OK 0 #define IDDHTLIB_ACQUIRING 1 #define IDDHTLIB_ACQUIRED 2 -#define IDDHTLIB_RESPONSE_OK 3 +#define IDDHTLIB_RESPONSE_OK 3 // error codes #define IDDHTLIB_ERROR_CHECKSUM -1 -#define IDDHTLIB_ERROR_TIMEOUT -2 -#define IDDHTLIB_ERROR_ACQUIRING -3 -#define IDDHTLIB_ERROR_DELTA -4 -#define IDDHTLIB_ERROR_NOTSTARTED -5 +#define IDDHTLIB_ERROR_ISR_TIMEOUT -2 +#define IDDHTLIB_ERROR_RESPONSE_TIMEOUT -3 +#define IDDHTLIB_ERROR_DATA_TIMEOUT -4 +#define IDDHTLIB_ERROR_ACQUIRING -5 +#define IDDHTLIB_ERROR_DELTA -6 +#define IDDHTLIB_ERROR_NOTSTARTED -7 #define IDDHT11_CHECK_STATE if(state == STOPPED) \ return status; \ @@ -71,4 +73,4 @@ private: volatile float hum; volatile float temp; }; -#endif // idDHT11_H__ \ No newline at end of file +#endif // idDHT11_H__