Commit 5d5b3b12 authored by Melroy van den Berg's avatar Melroy van den Berg

enable filter

parent 229b7b4a
Pipeline #1060 passed with stages
in 14 seconds
......@@ -154,8 +154,8 @@ bool DoTempMeasurement(int i2c_fd) {
while(counter < 60) {
bme.SetSensorMode(BME280_FORCED_MODE);
// 1/60Hz = 60000 ms
// 25Hz = 40ms
usleep(40000);
// 25Hz = 40ms (use 45 on the safe side)
usleep(45000);
bme280_data data = bme.getAllSensorData();
printf("%.2f °C\n", data.temperature);
printf("%.2f %%\n", data.humidity);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment