mirror of https://github.com/arendst/Tasmota.git
Add flash mode `OPI` to Tasmota info page (#19881)
* add OPI mode to info page
This commit is contained in:
parent
fdef240ea4
commit
b0d5cffe16
|
@ -12,6 +12,11 @@ def FindInoNodes(env):
|
|||
env.AddMethod(FindInoNodes)
|
||||
|
||||
# Pass flashmode at build time to macro
|
||||
tasmota_flash_mode = "-DCONFIG_TASMOTA_FLASHMODE_" + (env.BoardConfig().get("build.flash_mode", "dio")).upper()
|
||||
memory_type = env.BoardConfig().get("build.arduino.memory_type", "").upper()
|
||||
flash_mode = env.BoardConfig().get("build.flash_mode", "dio").upper()
|
||||
if "OPI_" in memory_type:
|
||||
flash_mode = "OPI"
|
||||
|
||||
tasmota_flash_mode = "-DCONFIG_TASMOTA_FLASHMODE_" + flash_mode
|
||||
env.Append(CXXFLAGS=[tasmota_flash_mode])
|
||||
print(tasmota_flash_mode)
|
||||
|
|
|
@ -74,7 +74,9 @@ String EthernetMacAddress(void);
|
|||
\*-------------------------------------------------------------------------------------------*/
|
||||
|
||||
// created in pio-tools/pre_source_dir.py
|
||||
#if defined(CONFIG_TASMOTA_FLASHMODE_QIO)
|
||||
#if defined(CONFIG_TASMOTA_FLASHMODE_OPI)
|
||||
#define D_TASMOTA_FLASHMODE "OPI"
|
||||
#elif (CONFIG_TASMOTA_FLASHMODE_QIO)
|
||||
#define D_TASMOTA_FLASHMODE "QIO"
|
||||
#elif defined(CONFIG_TASMOTA_FLASHMODE_QOUT)
|
||||
#define D_TASMOTA_FLASHMODE "QOUT"
|
||||
|
|
Loading…
Reference in New Issue