mirror of https://github.com/arendst/Tasmota.git
Formalize USE_SONOFF_SPM
This commit is contained in:
parent
8fabda4e29
commit
5d60365dfb
|
@ -968,6 +968,11 @@
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
|
|
||||||
|
//#define USE_SONOFF_SPM // Add support for ESP32 based Sonoff Smart Stackable Power Meter(+6k3 code)
|
||||||
|
#ifdef USE_SONOFF_SPM
|
||||||
|
#define USE_ETHERNET
|
||||||
|
#endif
|
||||||
|
|
||||||
//#define USE_ETHERNET // Add support for ethernet (Currently fixed for Olimex ESP32-PoE)
|
//#define USE_ETHERNET // Add support for ethernet (Currently fixed for Olimex ESP32-PoE)
|
||||||
// #define USE_WT32_ETH01 // Add support for Wireless-Tag WT32-ETH01
|
// #define USE_WT32_ETH01 // Add support for Wireless-Tag WT32-ETH01
|
||||||
// #define ETH_TYPE 0 // [EthType] 0 = ETH_PHY_LAN8720, 1 = ETH_PHY_TLK110/ETH_PHY_IP101, 2 = ETH_PHY_RTL8201, 3 = ETH_PHY_DP83848, 4 = ETH_PHY_DM9051, 5 = ETH_PHY_KSZ8081
|
// #define ETH_TYPE 0 // [EthType] 0 = ETH_PHY_LAN8720, 1 = ETH_PHY_TLK110/ETH_PHY_IP101, 2 = ETH_PHY_RTL8201, 3 = ETH_PHY_DP83848, 4 = ETH_PHY_DM9051, 5 = ETH_PHY_KSZ8081
|
||||||
|
|
|
@ -781,7 +781,9 @@ void ResponseAppendFeatures(void)
|
||||||
#if defined(USE_LIGHT) && defined(USE_LSC_MCSL)
|
#if defined(USE_LIGHT) && defined(USE_LSC_MCSL)
|
||||||
feature8 |= 0x00020000; // xlgt_07_lsc_mcsl.ino
|
feature8 |= 0x00020000; // xlgt_07_lsc_mcsl.ino
|
||||||
#endif
|
#endif
|
||||||
// feature8 |= 0x00040000;
|
#ifdef USE_SONOFF_SPM
|
||||||
|
feature8 |= 0x00040000;
|
||||||
|
#endif
|
||||||
// feature8 |= 0x00080000;
|
// feature8 |= 0x00080000;
|
||||||
|
|
||||||
// feature8 |= 0x00100000;
|
// feature8 |= 0x00100000;
|
||||||
|
|
|
@ -260,7 +260,7 @@ a_features = [[
|
||||||
"USE_BM8563","USE_ENERGY_DUMMY","USE_AM2320","USE_T67XX",
|
"USE_BM8563","USE_ENERGY_DUMMY","USE_AM2320","USE_T67XX",
|
||||||
"USE_MCP2515","USE_TASMESH","USE_WIFI_RANGE_EXTENDER","USE_INFLUXDB",
|
"USE_MCP2515","USE_TASMESH","USE_WIFI_RANGE_EXTENDER","USE_INFLUXDB",
|
||||||
"USE_HRG15","USE_VINDRIKTNING","USE_SCD40","USE_HM330X",
|
"USE_HRG15","USE_VINDRIKTNING","USE_SCD40","USE_HM330X",
|
||||||
"USE_HDC2010","USE_LSC_MCSL","","",
|
"USE_HDC2010","USE_LSC_MCSL","USE_SONOFF_SPM","",
|
||||||
"","","","",
|
"","","","",
|
||||||
"","","","",
|
"","","","",
|
||||||
"","","",""
|
"","","",""
|
||||||
|
@ -291,7 +291,7 @@ else:
|
||||||
obj = json.load(fp)
|
obj = json.load(fp)
|
||||||
|
|
||||||
def StartDecode():
|
def StartDecode():
|
||||||
print ("\n*** decode-status.py v20211130 by Theo Arends and Jacek Ziolkowski ***")
|
print ("\n*** decode-status.py v20211201 by Theo Arends and Jacek Ziolkowski ***")
|
||||||
|
|
||||||
# print("Decoding\n{}".format(obj))
|
# print("Decoding\n{}".format(obj))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue