From 81e3033b941872ddab97e08f7e0cef0693bbc542 Mon Sep 17 00:00:00 2001 From: Florian Pfeiffer Date: Fri, 1 Sep 2017 23:06:38 +0200 Subject: [PATCH] use an #ifdef to check if we should include the custom.h file --- code/espurna/config/all.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/espurna/config/all.h b/code/espurna/config/all.h index 117b0a12..abce7000 100644 --- a/code/espurna/config/all.h +++ b/code/espurna/config/all.h @@ -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