Skip to content

Commit 0b89ebe

Browse files
committed
Rename safeboot_activate.py => safeboot.py
1 parent 409d151 commit 0b89ebe

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/App_ESPConnect_OTA/platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/d
5454
[env:esp32dev-ota]
5555
board = esp32dev
5656
extra_scripts = ${env.extra_scripts}
57-
../../tools/safeboot_activate.py
57+
../../tools/safeboot.py
5858

5959
; environment without OTA
6060
[env:lolin_s2_mini]
@@ -68,4 +68,4 @@ upload_protocol = espota
6868
; enter mdns-name of the target here
6969
upload_port = MyAwesomeApp.local
7070
extra_scripts = ${env.extra_scripts}
71-
../../tools/safeboot_activate.py
71+
../../tools/safeboot.py

tools/safeboot_activate.py renamed to tools/safeboot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ def status(msg):
1111

1212
def critical(msg):
1313
"""Print critical message to stderr"""
14-
sys.stderr.write("safeboot_activate.py: ")
14+
sys.stderr.write("safeboot.py: ")
1515
sys.stderr.write(msg)
1616
sys.stderr.write("\n")
1717

1818
# open "/safeboot" on target to restart in SafeBoot-mode
19-
def safeboot_activate(source, target, env):
19+
def safeboot(source, target, env):
2020
upload_protocol = env.GetProjectOption("upload_protocol")
2121
upload_port = env.GetProjectOption("upload_port")
2222
if upload_protocol != "espota":
@@ -34,6 +34,6 @@ def safeboot_activate(source, target, env):
3434

3535
status("Activated SafeBoot on: %s" % upload_port)
3636

37-
env.AddPreAction("upload", safeboot_activate)
38-
env.AddPreAction("uploadfs", safeboot_activate)
39-
env.AddPreAction("uploadfsota", safeboot_activate)
37+
env.AddPreAction("upload", safeboot)
38+
env.AddPreAction("uploadfs", safeboot)
39+
env.AddPreAction("uploadfsota", safeboot)

0 commit comments

Comments
 (0)