From 4cbbfd8a02dad43c73f13ac003444550f3bfc99c Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Wed, 21 Nov 2018 15:13:29 -0300 Subject: [PATCH] Fix PIO Linter Warning This fixes the linter warning for Platformio due to module is defined in platformio.ini and also my_user_config.h If module is not defined in my_user_config.h nor in platformio.ini, sonoff_post.h will make SONOFF_BASIC as the default. This works for both Arduino and Platformio This will work as the same as #define MY_LANGUAGE works. If you define it in my_user_config.h, the compiler will use that language, if not defined, the compiler will use en-GB as the default language. --- sonoff/my_user_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/my_user_config.h b/sonoff/my_user_config.h index aa6686736..fb700bde2 100644 --- a/sonoff/my_user_config.h +++ b/sonoff/my_user_config.h @@ -48,7 +48,7 @@ // -- Project ------------------------------------- #define PROJECT "sonoff" // PROJECT is used as the default topic delimiter -#define MODULE SONOFF_BASIC // [Module] Select default model from sonoff_template.h (Should not be changed) +//#define MODULE SONOFF_BASIC // [Module] Select default model from sonoff_template.h. If none is selected the default will be SONOFF_BASIC #define SAVE_DATA 1 // [SaveData] Save changed parameters to Flash (0 = disable, 1 - 3600 seconds) #define SAVE_STATE 1 // [SetOption0] Save changed power state to Flash (0 = disable, 1 = enable)