Skip to content

Commit 1af1311

Browse files
committed
changed delay to 25 ms - power-up time
1 parent 736a734 commit 1af1311

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdpsensor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ esp_err_t SDPSensor::startContinuous() {
218218
ESP_LOGI(TAG_SDPSENSOR, "SDPSensor::startContinuous %s",
219219
esp_err_to_name(err));
220220
// wait for sensor to start continuously making measurements
221-
vTaskDelay(pdMS_TO_TICKS(20));
221+
vTaskDelay(pdMS_TO_TICKS(25));
222222
return err;
223223
}
224224

@@ -230,7 +230,7 @@ esp_err_t SDPSensor::stopContinuous() {
230230
SDPSENSOR_I2C_CMD_LEN, ticks_to_wait_long);
231231
ESP_LOGI(TAG_SDPSENSOR, "SDPSensor::stopContinuous %s",
232232
esp_err_to_name(err));
233-
vTaskDelay(pdMS_TO_TICKS(20));
233+
vTaskDelay(pdMS_TO_TICKS(25));
234234
return err;
235235
}
236236

@@ -241,7 +241,7 @@ esp_err_t SDPSensor::reset() {
241241
esp_err_t err = i2c_master_write_to_device(i2c_port, 0x00, cmd,
242242
1, ticks_to_wait_long);
243243
ESP_LOGI(TAG_SDPSENSOR, "SDPSensor::reset %s", esp_err_to_name(err));
244-
vTaskDelay(pdMS_TO_TICKS(20));
244+
vTaskDelay(pdMS_TO_TICKS(25));
245245
return err;
246246
}
247247

0 commit comments

Comments
 (0)