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.
This commit is contained in:
Adrian Scillato 2018-11-21 15:13:29 -03:00 committed by GitHub
parent 1bdbdf8a80
commit 4cbbfd8a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)