mirror of https://github.com/arendst/Tasmota.git
Merge pull request #15546 from Jason2866/rename_safeboot
Rename safemode to safeboot
This commit is contained in:
commit
a392d0b00f
|
@ -39,11 +39,11 @@ jobs:
|
|||
- tasmota32-lvgl
|
||||
- tasmota32c3
|
||||
- tasmota32solo1
|
||||
- tasmota32solo1-safemode
|
||||
- tasmota32-safemode
|
||||
- tasmota32c3-safemode
|
||||
- tasmota32s2-safemode
|
||||
- tasmota32s3-safemode
|
||||
- tasmota32solo1-safeboot
|
||||
- tasmota32-safeboot
|
||||
- tasmota32c3-safeboot
|
||||
- tasmota32s2-safeboot
|
||||
- tasmota32s3-safeboot
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
@ -122,7 +122,7 @@ jobs:
|
|||
[ ! -f ./mv_firmware/firmware/tasmota32-core2.* ] || mv ./mv_firmware/firmware/tasmota32-core2.* ./firmware/tasmota32/
|
||||
[ ! -f ./mv_firmware/firmware/tasmota32-bluetooth.* ] || mv ./mv_firmware/firmware/tasmota32-bluetooth.* ./firmware/tasmota32/
|
||||
[ ! -f ./mv_firmware/firmware/tasmota32c3*.* ] || mv ./mv_firmware/firmware/tasmota32c3*.* ./firmware/tasmota32/
|
||||
[ ! -f ./mv_firmware/firmware/tasmota32-safemode* ] || mv ./mv_firmware/firmware/tasmota32-safemode* ./firmware/tasmota32/
|
||||
[ ! -f ./mv_firmware/firmware/tasmota32-safeboot* ] || mv ./mv_firmware/firmware/tasmota32-safeboot* ./firmware/tasmota32/
|
||||
[ ! -f ./mv_firmware/firmware/tasmota32-* ] || mv ./mv_firmware/firmware/tasmota32-* ./firmware/tasmota32/languages/
|
||||
[ ! -f ./mv_firmware/firmware/tasmota32* ] || mv ./mv_firmware/firmware/tasmota32* ./firmware/tasmota32/
|
||||
[ ! -f ./mv_firmware/firmware/* ] || mv ./mv_firmware/firmware/* ./firmware/tasmota/languages/
|
||||
|
|
|
@ -43,11 +43,11 @@ jobs:
|
|||
- tasmota32s2
|
||||
- tasmota32c3
|
||||
- tasmota32solo1
|
||||
- tasmota32solo1-safemode
|
||||
- tasmota32-safemode
|
||||
- tasmota32c3-safemode
|
||||
- tasmota32s2-safemode
|
||||
- tasmota32s3-safemode
|
||||
- tasmota32solo1-safeboot
|
||||
- tasmota32-safeboot
|
||||
- tasmota32c3-safeboot
|
||||
- tasmota32s2-safeboot
|
||||
- tasmota32s3-safeboot
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32-safemode.bin"
|
||||
"variants/tasmota/tasmota32-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32-safemode.bin"
|
||||
"variants/tasmota/tasmota32-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32-safemode.bin"
|
||||
"variants/tasmota/tasmota32-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32solo1-safemode.bin"
|
||||
"variants/tasmota/tasmota32solo1-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32c3-safemode.bin"
|
||||
"variants/tasmota/tasmota32c3-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32s2-safemode.bin"
|
||||
"variants/tasmota/tasmota32s2-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"flash_extra_images": [
|
||||
[
|
||||
"0x10000",
|
||||
"variants/tasmota/tasmota32s3-safemode.bin"
|
||||
"variants/tasmota/tasmota32s3-safeboot.bin"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -35,23 +35,23 @@ import esptool
|
|||
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
|
||||
variants_dir = join(FRAMEWORK_DIR, "variants", "tasmota")
|
||||
|
||||
def esp32_fetch_safemode_bin(chip):
|
||||
safemode_fw_url = "https://github.com/arendst/Tasmota-firmware/raw/main/firmware/tasmota32/tasmota" + chip[3:] + "-safemode.bin"
|
||||
safemode_fw_name = join(variants_dir,"tasmota" + ("32solo1" if "solo1" in env.subst("$BUILD_DIR") else chip[3:]) + "-safemode.bin")
|
||||
if(exists(safemode_fw_name)):
|
||||
print("Safemode binary already in place.")
|
||||
def esp32_fetch_safeboot_bin(chip):
|
||||
safeboot_fw_url = "https://github.com/arendst/Tasmota-firmware/raw/main/firmware/tasmota32/tasmota" + chip[3:] + "-safeboot.bin"
|
||||
safeboot_fw_name = join(variants_dir,"tasmota" + ("32solo1" if "solo1" in env.subst("$BUILD_DIR") else chip[3:]) + "-safeboot.bin")
|
||||
if(exists(safeboot_fw_name)):
|
||||
print("safeboot binary already in place.")
|
||||
return
|
||||
print("Will download safemode binary from URL:")
|
||||
print(safemode_fw_url)
|
||||
response = requests.get(safemode_fw_url)
|
||||
open(safemode_fw_name, "wb").write(response.content)
|
||||
print("Safemode binary written to variants dir.")
|
||||
print("Will download safeboot binary from URL:")
|
||||
print(safeboot_fw_url)
|
||||
response = requests.get(safeboot_fw_url)
|
||||
open(safeboot_fw_name, "wb").write(response.content)
|
||||
print("safeboot binary written to variants dir.")
|
||||
|
||||
def esp32_copy_new_safemode_bin(chip,new_local_safemode_fw):
|
||||
print("Copy new local safemode firmware to variants dir -> using it for further flashing operations")
|
||||
safemode_fw_name = join(variants_dir,"tasmota" + ("32solo1" if "solo1" in env.subst("$BUILD_DIR") else chip[3:]) + "-safemode.bin")
|
||||
def esp32_copy_new_safeboot_bin(chip,new_local_safeboot_fw):
|
||||
print("Copy new local safeboot firmware to variants dir -> using it for further flashing operations")
|
||||
safeboot_fw_name = join(variants_dir,"tasmota" + ("32solo1" if "solo1" in env.subst("$BUILD_DIR") else chip[3:]) + "-safeboot.bin")
|
||||
if os.path.exists(variants_dir):
|
||||
shutil.copy(new_local_safemode_fw, safemode_fw_name)
|
||||
shutil.copy(new_local_safeboot_fw, safeboot_fw_name)
|
||||
|
||||
def esp32_create_combined_bin(source, target, env):
|
||||
#print("Generating combined binary for serial flashing")
|
||||
|
@ -86,10 +86,10 @@ def esp32_create_combined_bin(source, target, env):
|
|||
chip = env.get("BOARD_MCU")
|
||||
if not os.path.exists(variants_dir):
|
||||
os.makedirs(variants_dir)
|
||||
if("safemode" in firmware_name):
|
||||
esp32_copy_new_safemode_bin(chip,firmware_name)
|
||||
if("safeboot" in firmware_name):
|
||||
esp32_copy_new_safeboot_bin(chip,firmware_name)
|
||||
else:
|
||||
esp32_fetch_safemode_bin(chip)
|
||||
esp32_fetch_safeboot_bin(chip)
|
||||
flash_size = env.BoardConfig().get("upload.flash_size")
|
||||
cmd = [
|
||||
"--chip",
|
||||
|
@ -107,12 +107,12 @@ def esp32_create_combined_bin(source, target, env):
|
|||
print(f" - {sect_adr} | {sect_file}")
|
||||
cmd += [sect_adr, sect_file]
|
||||
|
||||
# "main" firmware to app0 - mandatory, except we just built a new safemode bin locally
|
||||
if("safemode" not in firmware_name):
|
||||
# "main" firmware to app0 - mandatory, except we just built a new safeboot bin locally
|
||||
if("safeboot" not in firmware_name):
|
||||
print(f" - {hex(app_offset)} | {firmware_name}")
|
||||
cmd += [hex(app_offset), firmware_name]
|
||||
else:
|
||||
print("Upload new safemode binary only")
|
||||
print("Upload new safeboot binary only")
|
||||
|
||||
#print('Using esptool.py arguments: %s' % ' '.join(cmd))
|
||||
|
||||
|
|
|
@ -116,9 +116,9 @@ lib_ignore =
|
|||
Micro-RTSP
|
||||
epdiy
|
||||
|
||||
[env:tasmota32-safemode]
|
||||
[env:tasmota32-safeboot]
|
||||
extends = env:tasmota32_base
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEMODE
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEBOOT
|
||||
lib_extra_dirs = lib/lib_ssl, lib/libesp32
|
||||
lib_ignore =
|
||||
TTGO TWatch Library
|
||||
|
@ -126,12 +126,12 @@ lib_ignore =
|
|||
Micro-RTSP
|
||||
epdiy
|
||||
|
||||
[env:tasmota32solo1-safemode]
|
||||
[env:tasmota32solo1-safeboot]
|
||||
extends = env:tasmota32_base
|
||||
board = esp32_solo1_4M
|
||||
platform = ${core32solo1.platform}
|
||||
platform_packages = ${core32solo1.platform_packages}
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEMODE
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEBOOT
|
||||
lib_extra_dirs = lib/lib_ssl, lib/libesp32
|
||||
lib_ignore =
|
||||
TTGO TWatch Library
|
||||
|
@ -139,9 +139,10 @@ lib_ignore =
|
|||
Micro-RTSP
|
||||
epdiy
|
||||
|
||||
[env:tasmota32s2-safemode]
|
||||
[env:tasmota32s2-safeboot]
|
||||
extends = env:tasmota32_base
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEMODE
|
||||
board = esp32s2
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEBOOT
|
||||
lib_extra_dirs = lib/lib_ssl, lib/libesp32
|
||||
lib_ignore =
|
||||
TTGO TWatch Library
|
||||
|
@ -149,9 +150,10 @@ lib_ignore =
|
|||
Micro-RTSP
|
||||
epdiy
|
||||
|
||||
[env:tasmota32s3-safemode]
|
||||
[env:tasmota32s3-safeboot]
|
||||
extends = env:tasmota32_base
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEMODE
|
||||
board = esp32s3
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEBOOT
|
||||
lib_extra_dirs = lib/lib_ssl, lib/libesp32
|
||||
lib_ignore =
|
||||
TTGO TWatch Library
|
||||
|
@ -159,12 +161,13 @@ lib_ignore =
|
|||
Micro-RTSP
|
||||
epdiy
|
||||
|
||||
[env:tasmota32c3-safemode]
|
||||
[env:tasmota32c3-safeboot]
|
||||
extends = env:tasmota32_base
|
||||
board = esp32c3
|
||||
build_unflags = ${env:tasmota32_base.build_unflags}
|
||||
-flto
|
||||
-mtarget-align
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEMODE
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_SAFEBOOT
|
||||
-fno-lto
|
||||
lib_extra_dirs = lib/lib_ssl, lib/libesp32
|
||||
lib_ignore =
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Skakel JavaScript aan om Tasmota te gebruik"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL firmware <br> gradeer asseblief op"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Webbediener aktief op"
|
||||
#define D_WITH_IP_ADDRESS "met IP-adres"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Begin opgradering"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Gradeer op volgens lêeroplaai"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Oplaai begin"
|
||||
#define D_UPGRADE_STARTED "Opgradering is begin"
|
||||
#define D_UPLOAD_DONE "Oplaai gedoen"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "За да използвате Tasmota разрешете JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Вграденият софтуер е MINIMAL<br>надградете го"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Уеб сървърът е достъпен на"
|
||||
#define D_WITH_IP_ADDRESS "с адрес по IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "Адрес на сървър за OTA"
|
||||
#define D_START_UPGRADE "Начало на обновяване"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Обновяване от файл"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Качване"
|
||||
#define D_UPGRADE_STARTED "Обновяване"
|
||||
#define D_UPLOAD_DONE "Качването завърши"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Pro používání prostředí Tasmota povolte JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware MINIMÁLNÍ<br>prosím zaktualizujte"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Aktivní Web server"
|
||||
#define D_WITH_IP_ADDRESS "na IP adrese"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "URL OTA"
|
||||
#define D_START_UPGRADE "Start aktualizace"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Aktualizace nahráním souboru"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Nahrávání zahájeno"
|
||||
#define D_UPGRADE_STARTED "Zahájení aktualizace"
|
||||
#define D_UPLOAD_DONE "Nahrávání ukončeno"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "JavaScript aktivieren um Tasmota benutzen zu können"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMUM-Firmware<br>bitte upgraden"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Web-Server aktiv bei"
|
||||
#define D_WITH_IP_ADDRESS "mit IP-Adresse"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA-URL"
|
||||
#define D_START_UPGRADE "Update starten"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Update Datei hochladen"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Upload gestartet"
|
||||
#define D_UPGRADE_STARTED "Update gestartet"
|
||||
#define D_UPLOAD_DONE "Upload abgeschlossen"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// webserver.ino
|
||||
#define D_NOSCRIPT "To use Tasmota, please enable JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL firmware<br>παρακαλώ αναβαθμίστε"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Ενεργός διακομιστής Web στο"
|
||||
#define D_WITH_IP_ADDRESS "με διεύθυνση IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA URL"
|
||||
#define D_START_UPGRADE "Εκκίνηση αναβάθμισης"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Αναβάθμιση με μεταφόρτωση αρχείου"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Η μεταφόρτωση ξεκίνησε"
|
||||
#define D_UPGRADE_STARTED "Η αναβάθμιση ξεκίνησε"
|
||||
#define D_UPLOAD_DONE "Η μεταφόρτωση ολοκληρώθηκε"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "To use Tasmota, please enable JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL firmware<br>please upgrade"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Web server active on"
|
||||
#define D_WITH_IP_ADDRESS "with IP address"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Start upgrade"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Upgrade by file upload"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Upload started"
|
||||
#define D_UPGRADE_STARTED "Upgrade started"
|
||||
#define D_UPLOAD_DONE "Upload done"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Habilitar JavaScript para usar Tasmota"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware MÍNIMO<br>actualice por favor"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Servidor web activo en"
|
||||
#define D_WITH_IP_ADDRESS "con dirección IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Comenzar actualización"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Actualizar cargando archivo bin"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Cargando archivo"
|
||||
#define D_UPGRADE_STARTED "Actualización iniciada"
|
||||
#define D_UPLOAD_DONE "Carga finalizada"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Pour utiliser Tasmota, veuillez activer JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware MINIMAL<br>merci de mettre à jour"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Serveur web actif sur"
|
||||
#define D_WITH_IP_ADDRESS "avec l'adresse IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "URL OTA"
|
||||
#define D_START_UPGRADE "Lancer la mise à jour"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Mise à jour par téléchargement fichier"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Téléchargement lancé"
|
||||
#define D_UPGRADE_STARTED "Mise à jour lancée"
|
||||
#define D_UPLOAD_DONE "Téléchargement terminé"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Aktivearje JavaScript foar Tasmota"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMALE firmware <br> upgrade"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Webserver aktyf op"
|
||||
#define D_WITH_IP_ADDRESS "mei IP-adres"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Begjin upgrade"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Upgrade op bestân upload"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Upload begon"
|
||||
#define D_UPGRADE_STARTED "Upgrade begon"
|
||||
#define D_UPLOAD_DONE "Upload dien"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "JavaScript - כדי להשתמש בקושחת אסמוטה אנא הפעל"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "קושחה מינימלית<br>בבקשה אנא שדרג"
|
||||
#define D_WEBSERVER_ACTIVE_ON "שרת ווב פעיל"
|
||||
#define D_WITH_IP_ADDRESS "IP עם כתובת"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA כתובת"
|
||||
#define D_START_UPGRADE "התחל בשדרוג"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "שדרוג דרך קובץ נכשל"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "העלאה מתחילה"
|
||||
#define D_UPGRADE_STARTED "שדרוג מתחיל"
|
||||
#define D_UPLOAD_DONE "העלאה הסתיימה"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "A Tasmota használatához engedélyezd a Javascriptet!"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMÁLIS firmware<br>frissítsd!"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Webszerver aktív:"
|
||||
#define D_WITH_IP_ADDRESS "IP cím:"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA URL"
|
||||
#define D_START_UPGRADE "Frissítés"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Frissítés helyi fájllal"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Feltöltés elindítva"
|
||||
#define D_UPGRADE_STARTED "Frissítés elindítva"
|
||||
#define D_UPLOAD_DONE "Feltöltés kész"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Per usare Tasmota abilita JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware MINIMALE<br>Effettua aggiornamento"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Server web attivo in"
|
||||
#define D_WITH_IP_ADDRESS "con indirizzo IP"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Tasmota를 사용하려면 JavaScript를 활성화 하십시오."
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL firmware<br>업그레이드가 필요합니다"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Web 서버 작동 중"
|
||||
#define D_WITH_IP_ADDRESS "IP 주소"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "업그레이드 시작"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "파일에서 업로드해 업그레이드"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "업로드 시작됨"
|
||||
#define D_UPGRADE_STARTED "업그레이드 시작됨"
|
||||
#define D_UPLOAD_DONE "업그레이드 완료"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Zet JavaScript aan voor Tasmota"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL firmware<br>opwaarderen"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Webserver actief op"
|
||||
#define D_WITH_IP_ADDRESS "met IP adres"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Start opwaarderen"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Opwaarderen dmv verzenden bestand"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Verzending gestart"
|
||||
#define D_UPGRADE_STARTED "Opwaarderen gestart"
|
||||
#define D_UPLOAD_DONE "Opwaarderen klaar"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Aby korzystać z Tasmota, włącz obsługę JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Oprogramowanie MINIMAL<br>proszę uaktualnić"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Aktywny serwer Web"
|
||||
#define D_WITH_IP_ADDRESS "z adresem IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "Adres serwera"
|
||||
#define D_START_UPGRADE "Aktualizuj"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Aktualizacja z pliku"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Wgrywanie rozpoczęte"
|
||||
#define D_UPGRADE_STARTED "Aktualizacja rozpoczęta"
|
||||
#define D_UPLOAD_DONE "Wgrywanie zakończone"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Para usar o Tasmota, por favor habilite o JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware mínimo<br>Atualizar por favor"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Servidor WEB ativo em"
|
||||
#define D_WITH_IP_ADDRESS "com o endereço IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA URL"
|
||||
#define D_START_UPGRADE "Iniciar atualização"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Atualização por arquivo local"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Início do envio"
|
||||
#define D_UPGRADE_STARTED "Atualização iniciada"
|
||||
#define D_UPLOAD_DONE "Atualização finalizada"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Para utilizar o Tasmota, por favor ative o JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware MÍNIMO<br>Por favor atualize"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Servidor WEB ativo em"
|
||||
#define D_WITH_IP_ADDRESS "com o endereço IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "Url OTA"
|
||||
#define D_START_UPGRADE "Iniciar atualização"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Atualizar por envio de ficheiro"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Envio Iniciado"
|
||||
#define D_UPGRADE_STARTED "Atualização Iniciada"
|
||||
#define D_UPLOAD_DONE "Atualização Finalizada"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Pentru a folosi Tasmota, vă rugăm activați JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "firmware MINIMAL<br>vă rugăm actualizați"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Server Web activ"
|
||||
#define D_WITH_IP_ADDRESS "cu adresa IP "
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Porneste actualizare"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Actualizare prin încărcare fișier"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Încărcare începută"
|
||||
#define D_UPGRADE_STARTED "Actualizare începută"
|
||||
#define D_UPLOAD_DONE "Încărcare terminată"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "To use Tasmota, please enable JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Прошивка MINIMAL<br>пожалуйста обновите"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Веб-сервер активен"
|
||||
#define D_WITH_IP_ADDRESS "с IP-адресом"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Начать обновление"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Обновление путем загрузки файлов"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Загрузка началась"
|
||||
#define D_UPGRADE_STARTED "Обновление началось"
|
||||
#define D_UPLOAD_DONE "Загрузка завершена"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Pre používanie prostredia Tasmota povoľte JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Firmware MINIMÁLNY<br>prosím aktualizujte"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Aktívny Web server"
|
||||
#define D_WITH_IP_ADDRESS "na IP adrese"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "URL OTA"
|
||||
#define D_START_UPGRADE "Spustiť aktualizáciu"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Aktualizácia nahraním súboru"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Nahrávanie spustené"
|
||||
#define D_UPGRADE_STARTED "Aktualizácia spustená"
|
||||
#define D_UPLOAD_DONE "Nahrávanie ukončené"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "För att använda Tasmota, aktivera JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL firmware<br>var god uppgradera"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Webbserver aktiv på"
|
||||
#define D_WITH_IP_ADDRESS "med IP-adress"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Starta uppdatering"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Uppgradering via filuppladdning"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Uppladdning startad"
|
||||
#define D_UPGRADE_STARTED "Uppgradeing startad"
|
||||
#define D_UPLOAD_DONE "Uppladdning klar"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "To use Tasmota, please enable JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Donanım yazılımı çok düşük<br>lütfen yükseltin"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Web sunucusu aktif"
|
||||
#define D_WITH_IP_ADDRESS "IP adres ile"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA Url"
|
||||
#define D_START_UPGRADE "Yükseltmeyi başlat"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Dosya kullanrak yükset"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Yükleme başlatıldı"
|
||||
#define D_UPGRADE_STARTED "YÜkestlme başlatıldı"
|
||||
#define D_UPLOAD_DONE "Yükleme Tamamlandı"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Для використання Tasmota треба увімкнути JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Прошивка MINIMAL<br>будь-ласка оновіть"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Веб-сервер активний"
|
||||
#define D_WITH_IP_ADDRESS "з IP-адресою"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA URL"
|
||||
#define D_START_UPGRADE "Почати оновлення"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Оновлення шляхом завантаження файлів"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Завантаження почалось"
|
||||
#define D_UPGRADE_STARTED "Оновлення почалось"
|
||||
#define D_UPLOAD_DONE "Завантаження завершено"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "Để sử dụng Tasmota, vui lòng bật JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "Đang sử dụng bản MINIMAL <br>vui lòng nâng cấp"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Máy chủ Web đã bật"
|
||||
#define D_WITH_IP_ADDRESS "với địa chỉ IP"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "Đường dẫn OTA"
|
||||
#define D_START_UPGRADE "Bắt đầu nâng cấp"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "Nâng cấp thông qua tải lên tệp"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "Bắt đầu tải lên"
|
||||
#define D_UPGRADE_STARTED "Bắt đầu nâng cấp"
|
||||
#define D_UPLOAD_DONE "Hoàn thành tải tệp"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// webserver.ino
|
||||
#define D_NOSCRIPT "Tasmota 要求浏览器支持 JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "当前是精简版固件<br>请升级"
|
||||
#define D_WEBSERVER_ACTIVE_ON "Web 服务器地址:"
|
||||
#define D_WITH_IP_ADDRESS "IP 地址:"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA 地址"
|
||||
#define D_START_UPGRADE "开始升级"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "通过文件升级"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "开始上传"
|
||||
#define D_UPGRADE_STARTED "开始升级"
|
||||
#define D_UPLOAD_DONE "上传完成"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
|
||||
// xdrv_02_webserver.ino
|
||||
#define D_NOSCRIPT "為了要使用 Tasmota,請啟用 JavaScript"
|
||||
#define D_SAFEMODE "SAFEMODE"
|
||||
#define D_SAFEBOOT "SAFEBOOT"
|
||||
#define D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "MINIMAL韌體<br>請升級"
|
||||
#define D_WEBSERVER_ACTIVE_ON "網頁伺服器已經啟動,位於:"
|
||||
#define D_WITH_IP_ADDRESS "IP位址:"
|
||||
|
@ -373,7 +373,7 @@
|
|||
#define D_OTA_URL "OTA網址"
|
||||
#define D_START_UPGRADE "開始升級"
|
||||
#define D_UPGRADE_BY_FILE_UPLOAD "透過檔案升級"
|
||||
#define D_UPLOAD_FACTORY "Switching to safemode partition"
|
||||
#define D_UPLOAD_FACTORY "Switching to safeboot partition"
|
||||
#define D_UPLOAD_STARTED "已開始上傳"
|
||||
#define D_UPGRADE_STARTED "已開始升級"
|
||||
#define D_UPLOAD_DONE "已上傳完成"
|
||||
|
|
|
@ -304,7 +304,7 @@ bool EspRunningFactoryPartition(void) {
|
|||
return (cur_part->type == 0 && cur_part->subtype == 0);
|
||||
}
|
||||
|
||||
void EspPrepRestartToSafeMode(void) {
|
||||
void EspPrepRestartToSafeBoot(void) {
|
||||
// esp_ota_mark_app_invalid_rollback_and_reboot(); // Doesn't work 20220501
|
||||
const esp_partition_t *otadata_partition = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_OTA, NULL);
|
||||
if (otadata_partition) {
|
||||
|
|
|
@ -1246,10 +1246,10 @@ void Every250mSeconds(void)
|
|||
#ifdef ESP32
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
if (EspSingleOtaPartition()) {
|
||||
RtcSettings.ota_loader = 1; // Try safemode image next
|
||||
RtcSettings.ota_loader = 1; // Try safeboot image next
|
||||
SettingsSaveAll();
|
||||
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_RESTARTING));
|
||||
EspPrepRestartToSafeMode();
|
||||
EspPrepRestartToSafeBoot();
|
||||
EspRestart();
|
||||
}
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
|
|
|
@ -23,16 +23,16 @@
|
|||
#ifdef ESP32
|
||||
|
||||
/*********************************************************************************************\
|
||||
* [tasmota32x-safemode.bin]
|
||||
* [tasmota32x-safeboot.bin]
|
||||
* Provide an image with useful supported sensors enabled
|
||||
*
|
||||
* Is a copy of FIRMWARE_MINIMAL with some additional features enabled
|
||||
\*********************************************************************************************/
|
||||
|
||||
#ifdef FIRMWARE_SAFEMODE
|
||||
#ifdef FIRMWARE_SAFEBOOT
|
||||
|
||||
#undef CODE_IMAGE_STR
|
||||
#define CODE_IMAGE_STR "safemode"
|
||||
#define CODE_IMAGE_STR "safeboot"
|
||||
|
||||
#undef FIRMWARE_LITE // Disable tasmota-lite with no sensors
|
||||
#undef FIRMWARE_SENSORS // Disable tasmota-sensors with useful sensors enabled
|
||||
|
@ -161,7 +161,7 @@
|
|||
/*-------------------------------------------------------------------------------------------*\
|
||||
* End copy of all undefines from FIRMWARE_MINIMAL
|
||||
*
|
||||
* Start FIRMWARE_SAFEMODE specific additions
|
||||
* Start FIRMWARE_SAFEBOOT specific additions
|
||||
\*-------------------------------------------------------------------------------------------*/
|
||||
|
||||
#define FIRMWARE_MINIMAL
|
||||
|
@ -181,7 +181,7 @@
|
|||
#define USE_WEBCLIENT
|
||||
#define USE_WEBCLIENT_HTTPS
|
||||
|
||||
#endif // FIRMWARE_SAFEMODE
|
||||
#endif // FIRMWARE_SAFEBOOT
|
||||
|
||||
/*********************************************************************************************\
|
||||
* [tasmota32-webcam.bin]
|
||||
|
|
|
@ -243,11 +243,11 @@ const char HTTP_HEAD_STYLE3[] PROGMEM =
|
|||
"<body>"
|
||||
"<div style='text-align:left;display:inline-block;color:#%06x;min-width:340px;'>" // COLOR_TEXT
|
||||
#ifdef FIRMWARE_MINIMAL
|
||||
#ifdef FIRMWARE_SAFEMODE
|
||||
"<span style='text-align:center;color:#%06x;'><h3>" D_SAFEMODE "</h3></span>" // COLOR_TEXT_WARNING
|
||||
#ifdef FIRMWARE_SAFEBOOT
|
||||
"<span style='text-align:center;color:#%06x;'><h3>" D_SAFEBOOT "</h3></span>" // COLOR_TEXT_WARNING
|
||||
#else
|
||||
"<div style='text-align:center;color:#%06x;'><h3>" D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "</h3></div>" // COLOR_TEXT_WARNING
|
||||
#endif // FIRMWARE_SAFEMODE
|
||||
#endif // FIRMWARE_SAFEBOOT
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
"<div style='text-align:center;color:#%06x;'><noscript>" D_NOSCRIPT "<br></noscript>" // COLOR_TITLE
|
||||
/*
|
||||
|
@ -2969,7 +2969,7 @@ void HandleSwitchFactory(void)
|
|||
if (switch_factory || switch_ota) {
|
||||
SettingsSaveAll();
|
||||
if (switch_factory) {
|
||||
EspPrepRestartToSafeMode();
|
||||
EspPrepRestartToSafeBoot();
|
||||
} else {
|
||||
const esp_partition_t* partition = esp_ota_get_next_update_partition(nullptr);
|
||||
esp_ota_set_boot_partition(partition);
|
||||
|
|
Loading…
Reference in New Issue