diff --git a/include/sensor_sds018.h b/include/sensor_sds018.h index 31e3b17..ab4573b 100644 --- a/include/sensor_sds018.h +++ b/include/sensor_sds018.h @@ -29,8 +29,6 @@ private: unsigned long lastread_sds018=0; //to save last read time for both readings - void readSDS018(); - void loop_pm25(); void loop_pm10(); void readSDS018(); diff --git a/src/main.cpp b/src/main.cpp index 7b22426..3b88641 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -837,8 +837,7 @@ void loopHandler() { #endif #ifdef SENSOR_SDS018 - loop_SDS018_pm25(); - loop_SDS018_pm10(); + sensor_sds018.sensorloop(); #endif #ifdef SENSOR_TCS34725