From b590db9db3cdfa70305d61698f7890e963a34010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 30 Nov 2017 14:43:52 +0100 Subject: [PATCH] Include my92xx only if necessary --- code/espurna/config/prototypes.h | 7 +++++++ code/espurna/hardware.ino | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/espurna/config/prototypes.h b/code/espurna/config/prototypes.h index 1ba3f355..38d549aa 100644 --- a/code/espurna/config/prototypes.h +++ b/code/espurna/config/prototypes.h @@ -62,6 +62,13 @@ template void domoticzSend(const char * key, T nvalue, const char * template bool idbSend(const char * topic, T payload); #endif +// ----------------------------------------------------------------------------- +// Light +// ----------------------------------------------------------------------------- +#if LIGHT_PROVIDER == LIGHT_PROVIDER_MY92XX +#include +#endif + // ----------------------------------------------------------------------------- // Utils // ----------------------------------------------------------------------------- diff --git a/code/espurna/hardware.ino b/code/espurna/hardware.ino index 78c335eb..6830466b 100644 --- a/code/espurna/hardware.ino +++ b/code/espurna/hardware.ino @@ -13,8 +13,6 @@ the migration to future version 2 will be straigh forward. */ -#include - void hwUpwardsCompatibility() { unsigned int board = getSetting("board", 0).toInt();