From 22bcd89943f64d8a11508d030f870df678d301fd Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 13 Aug 2019 18:14:44 +0200 Subject: [PATCH] sds use query reporting mode (2) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f3ab35d..4cebf1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -362,7 +362,7 @@ void getSensorMeasurements() { } if (sensors_active.sds) { - PmResult pm = sds.readPm(); + PmResult pm = sds.queryPm(); if (pm.isOk()) { sensor_readings.pm10 = pm.pm10; sensor_readings.pm25 = pm.pm25;