From 7780bc6a5839c28b1b786df2037ff59d6979701f Mon Sep 17 00:00:00 2001 From: tyler Date: Sat, 23 Sep 2017 15:29:32 -0600 Subject: [PATCH] Adding ifdef to brzo. --- src/BME280BRZO_I2C.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/BME280BRZO_I2C.cpp b/src/BME280BRZO_I2C.cpp index 76a5a14..defc498 100644 --- a/src/BME280BRZO_I2C.cpp +++ b/src/BME280BRZO_I2C.cpp @@ -31,7 +31,9 @@ of www.endmemo.com, altitude equation courtesy of NOAA, and dew point equation courtesy of Brian McNoldy at http://andrew.rsmas.miami.edu. */ +#ifdef _BRZO_I2C_h #include "brzo_i2c.h" + #include "BME280BRZO_I2C.h" /****************************************************************/ @@ -110,3 +112,5 @@ bool BME280BRZO_I2C::Initialize() brzo_i2c_setup(D2,D1,I2C_ACK_TIMEOUT); return BME280::Initialize(); } + +#endif