From 42f988378527f76e216326ac2067df9a55f9ac3d Mon Sep 17 00:00:00 2001 From: Olmo Mezger Date: Sun, 12 Jun 2022 12:54:30 +0200 Subject: [PATCH] Update MQ135.h added #ifndef to RLOAD and RZERO, so that these can be configured in the sketch and platformio won't generate a warning while compiling. --- MQ135.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MQ135.h b/MQ135.h index 22cefec..4ff95fa 100755 --- a/MQ135.h +++ b/MQ135.h @@ -22,9 +22,15 @@ v1.0 - First release #endif /// The load resistance on the board +#ifndef RLOAD #define RLOAD 10.0 +#endif + /// Calibration resistance at atmospheric CO2 level +#ifndef RZERO #define RZERO 76.63 +#endif + /// Parameters for calculating ppm of CO2 from sensor resistance #define PARA 116.6020682 #define PARB 2.769034857