Browse Source

use an #ifdef to check if we should include the custom.h file

fastled
Florian Pfeiffer 7 years ago
parent
commit
81e3033b94
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      code/espurna/config/all.h

+ 7
- 2
code/espurna/config/all.h View File

@ -7,9 +7,14 @@
/*
If you want to modify the stock configuration but you don't want to touch
the repo files you can uncomment the following line and add a "custom.h"
the repo files you can either define USE_CUSTOM_H or remove the
"#ifdef USE_CUSTOM_H" & "#endif" lines and add a "custom.h"
file to this same folder.
Check https://bitbucket.org/xoseperez/espurna/issues/104/general_customh
for an example on how to use this file.
(Define USE_CUSTOM_H on commandline for platformio:
export PLATFORMIO_BUILD_FLAGS="'-DUSE_CUSTOM_H'" )
*/
//#include "custom.h"
#ifdef USE_CUSTOM_H
#include "custom.h"
#endif

Loading…
Cancel
Save