SDS011read.cpp: bugfix conditional compile
This commit is contained in:
parent
867c5477df
commit
fa2920340c
@ -3,15 +3,19 @@
|
||||
// Local logging tag
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
#if (HAS_SDS)
|
||||
|
||||
#include "sds011read.h"
|
||||
|
||||
// UART(2) is unused in this project
|
||||
#if (HAS_IF482)
|
||||
#error cannot use IF482 together with SDS011 (both use UART#2)
|
||||
#endif
|
||||
|
||||
#ifndef SDS011_SERIAL
|
||||
#error serial settings for SDS011 connection missing
|
||||
#endif
|
||||
|
||||
static HardwareSerial sdsSerial(2); // so we use it here
|
||||
static SDS011 sdsSensor; // fine dust sensor
|
||||
|
||||
@ -58,3 +62,5 @@ void sds011_wakeup() {
|
||||
isSDS011Active = true;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // HAS_SDS
|
Loading…
Reference in New Issue
Block a user