Skip to content

Commit 19ebd8c

Browse files
authored
Merge pull request #2480 from KPrivitt/dev
Incorrect time_t TypeDef used in RAK12035_SoilMoisture
2 parents f9ddd9d + 235706a commit 19ebd8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/sensors/RAK12035_SoilMoisture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ bool RAK12035_SoilMoisture::sensor_on()
431431
delay(10); // Wait for the sensor code to complete initialization
432432
*/
433433
uint8_t v = 0;
434-
time_t timeout = millis();
434+
uint32_t timeout = millis();
435435
while ((!query_sensor())) //Wait for sensor to respond to I2C commands,
436436
{ //indicating it is ready
437437
if ((millis() - timeout) > 50){ //0.5 second timeout for sensor to respond

0 commit comments

Comments
 (0)