diff --git a/sonoff/my_user_config.h b/sonoff/my_user_config.h index c1845b540e62..8e473743765b 100644 --- a/sonoff/my_user_config.h +++ b/sonoff/my_user_config.h @@ -531,6 +531,7 @@ #define USE_HX711 // Add support for HX711 load cell (+1k5 code) // #define USE_HX711_GUI // Add optional web GUI to HX711 as scale (+1k8 code) +#define USE_RF_BRIDGE // Add support for Rf Bridge #define USE_RF_FLASH // Add support for flashing the EFM8BB1 chip on the Sonoff RF Bridge. C2CK must be connected to GPIO4, C2D to GPIO5 on the PCB (+3k code) //#define USE_TX20_WIND_SENSOR // Add support for La Crosse TX20 anemometer (+2k code) diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index 27532404f74b..e51f136632d8 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -775,7 +775,9 @@ const uint8_t kModuleNiceList[] PROGMEM = { SONOFF_IFAN02, // Sonoff Fan SONOFF_IFAN03, #endif +#ifdef USE_RF_BRIDGE SONOFF_BRIDGE, // Sonoff Bridge +#endif SONOFF_SV, // Sonoff Development Devices SONOFF_DEV, CH1, // Relay Devices diff --git a/sonoff/support_features.ino b/sonoff/support_features.ino index 3e92d7a937c2..99ad95f2157d 100644 --- a/sonoff/support_features.ino +++ b/sonoff/support_features.ino @@ -468,7 +468,9 @@ void GetFeatures(void) #ifdef USE_SONOFF_SC feature5 |= 0x00001000; #endif -// feature5 |= 0x00002000; +#ifdef USE_RF_BRIDGE + feature5 |= 0x00002000; +#endif // feature5 |= 0x00004000; // feature5 |= 0x00008000; diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index e59cfb3e77d2..a40564d47873 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -1046,6 +1046,7 @@ void HandleRoot(void) #endif // USE_SONOFF_IFAN WSContentSend_P(PSTR("")); } +#ifdef USE_RF_BRIDGE if (SONOFF_BRIDGE == my_module_type) { WSContentSend_P(HTTP_TABLE100); WSContentSend_P(PSTR("