From e57643881776454a1a0ba23f7a7dbd7efd9574d9 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 26 Jul 2019 14:32:16 +0200 Subject: [PATCH] query sds only once --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4aca889..3f52f8f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -125,7 +125,7 @@ void printValues() { Serial.print("Raw UVA reading: "); Serial.println(uv.readUVA()); Serial.print("Raw UVB reading: "); Serial.println(uv.readUVB()); } - +/* if (sds_active) { PmResult pm = sds.readPm(); if (pm.isOk()) { @@ -141,7 +141,7 @@ void printValues() { Serial.println(pm.statusToString()); } } - +*/ } void sendValues() { @@ -237,7 +237,7 @@ void setup() if (sds_fw.isOk()) { sds_active = true; sds.setActiveReportingMode(); // ensures sensor is in 'active' reporting mode -// sds.setCustomWorkingPeriod(5); // sensor sends data every 3 minutes + sds.setCustomWorkingPeriod(5); // sensor sends data every 3 minutes } else { Serial.println("Failed to communicate with SDS011 sensor, check wiring?"); }