ソースを参照

Merge pull request #160 from Rotzbua/patch-2

Fix compiler warning: comparison between signed...
Limor "Ladyada" Fried 5 年 前
コミット
4f841c64b2
1 ファイル変更3 行追加1 行削除
  1. 3 1
      DHT.cpp

+ 3 - 1
DHT.cpp

@@ -26,7 +26,9 @@
 #include "DHT.h"
 
 #define MIN_INTERVAL 2000 /**< min interval value */
-#define TIMEOUT -1        /**< timeout on */
+#define TIMEOUT                                                                \
+  UINT32_MAX /**< Used programmatically for timeout.                           \
+                   Not a timeout duration. Type: uint32_t. */
 
 /*!
  *  @brief  Instantiates a new DHT class