-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move WebUI image calculation after sensors.h (#1142)
- Loading branch information
Showing
3 changed files
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// ----------------------------------------------------------------------------- | ||
// WEB UI IMAGE | ||
// ----------------------------------------------------------------------------- | ||
|
||
#define WEBUI_IMAGE_SMALL 0 | ||
#define WEBUI_IMAGE_LIGHT 1 | ||
#define WEBUI_IMAGE_SENSOR 2 | ||
#define WEBUI_IMAGE_RFBRIDGE 4 | ||
#define WEBUI_IMAGE_RFM69 8 | ||
#define WEBUI_IMAGE_FULL 15 | ||
|
||
#if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE | ||
#ifdef WEBUI_IMAGE | ||
#undef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_FULL | ||
#else | ||
#define WEBUI_IMAGE WEBUI_IMAGE_LIGHT | ||
#endif | ||
#endif | ||
|
||
#if SENSOR_SUPPORT == 1 | ||
#ifndef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_SENSOR | ||
#else | ||
#undef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_FULL | ||
#endif | ||
#endif | ||
|
||
#if defined(ITEAD_SONOFF_RFBRIDGE) | ||
#ifndef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE | ||
#else | ||
#undef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_FULL | ||
#endif | ||
#endif | ||
|
||
#if RFM69_SUPPORT == 1 | ||
#ifndef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_RFM69 | ||
#else | ||
#undef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_FULL | ||
#endif | ||
#endif | ||
|
||
#ifndef WEBUI_IMAGE | ||
#define WEBUI_IMAGE WEBUI_IMAGE_SMALL | ||
#endif |