Update sds011read.cpp

This commit is contained in:
August Quint 2020-02-25 15:56:11 +01:00 committed by GitHub
parent e6ab58ff91
commit 497c738405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,10 +5,10 @@ static const char TAG[] = __FILE__;
#include "sds011read.h" #include "sds011read.h"
// UART(2) is unused in this project
#if (HAS_IF482) #if (HAS_IF482)
#error cannot use IF482 together with SDS011 (both use UART#2) #error cannot use IF482 together with SDS011 (both use UART#2)
#endif #endif
// UART(2) is unused in this project
static HardwareSerial sdsSerial(2); // so we use it here static HardwareSerial sdsSerial(2); // so we use it here
static SDS011 sdsSensor; // fine dust sensor static SDS011 sdsSensor; // fine dust sensor