Procházet zdrojové kódy

Incorrect time_t TypeDef in RAK12035_SoilMoisture

Kenneth Privitt před 3 měsíci
rodič
revize
235706a22a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/helpers/sensors/RAK12035_SoilMoisture.cpp

+ 1 - 1
src/helpers/sensors/RAK12035_SoilMoisture.cpp

@@ -431,7 +431,7 @@ bool RAK12035_SoilMoisture::sensor_on()
     delay(10);                     // Wait for the sensor code to complete initialization
     delay(10);                     // Wait for the sensor code to complete initialization
 */
 */
 	uint8_t v = 0;
 	uint8_t v = 0;
-    time_t timeout = millis();
+    uint32_t timeout = millis();
 	while ((!query_sensor()))                    //Wait for sensor to respond to I2C commands, 
 	while ((!query_sensor()))                    //Wait for sensor to respond to I2C commands, 
 	{                                            //indicating it is ready
 	{                                            //indicating it is ready
 		if ((millis() - timeout) > 50){          //0.5 second timeout for sensor to respond
 		if ((millis() - timeout) > 50){          //0.5 second timeout for sensor to respond