Browse Source

Include my92xx only if necessary

fastled
Xose Pérez 7 years ago
parent
commit
b590db9db3
2 changed files with 7 additions and 2 deletions
  1. +7
    -0
      code/espurna/config/prototypes.h
  2. +0
    -2
      code/espurna/hardware.ino

+ 7
- 0
code/espurna/config/prototypes.h View File

@ -62,6 +62,13 @@ template<typename T> void domoticzSend(const char * key, T nvalue, const char *
template<typename T> bool idbSend(const char * topic, T payload); template<typename T> bool idbSend(const char * topic, T payload);
#endif #endif
// -----------------------------------------------------------------------------
// Light
// -----------------------------------------------------------------------------
#if LIGHT_PROVIDER == LIGHT_PROVIDER_MY92XX
#include <my92xx.h>
#endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Utils // Utils
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------


+ 0
- 2
code/espurna/hardware.ino View File

@ -13,8 +13,6 @@ the migration to future version 2 will be straigh forward.
*/ */
#include <my92xx.h>
void hwUpwardsCompatibility() { void hwUpwardsCompatibility() {
unsigned int board = getSetting("board", 0).toInt(); unsigned int board = getSetting("board", 0).toInt();


Loading…
Cancel
Save