Browse Source

Merge pull request #2480 from KPrivitt/dev

Incorrect time_t TypeDef used in RAK12035_SoilMoisture
pull/2020/merge
Liam Cottle 4 weeks ago
committed by GitHub
parent
commit
19ebd8c795
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/helpers/sensors/RAK12035_SoilMoisture.cpp

2
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
*/
uint8_t v = 0;
time_t timeout = millis();
uint32_t timeout = millis();
while ((!query_sensor())) //Wait for sensor to respond to I2C commands,
{ //indicating it is ready
if ((millis() - timeout) > 50){ //0.5 second timeout for sensor to respond

Loading…
Cancel
Save