From b7e7fbdc15b734a5dc854151235e38722401d4fc Mon Sep 17 00:00:00 2001 From: gururise Date: Wed, 8 Apr 2020 10:27:49 -0700 Subject: [PATCH] define WARMUP_PERIOD for sensor warmup --- tasmota/xsns_18_pms5003.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/xsns_18_pms5003.ino b/tasmota/xsns_18_pms5003.ino index 3e12bb1d0..d8bd5dc17 100644 --- a/tasmota/xsns_18_pms5003.ino +++ b/tasmota/xsns_18_pms5003.ino @@ -32,6 +32,10 @@ #include +#ifndef WARMUP_PERIOD +#define WARMUP_PERIOD 30 // Turn on PMSX003 XX-seconds before read in passive mode +#endif + TasmotaSerial *PmsSerial; uint8_t pms_type = 1;