mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Update flasher for Sonoff ZBBridge Pro (#23136)
This commit is contained in:
parent
f3ae3bec4b
commit
16e9d105ba
@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
||||
- ESP32 Platform from 2025.02.30 to 2025.03.30, Framework (Arduino Core) from v3.1.1.250203 to v3.1.3.250302 and IDF from v5.3.2.250120 to 5.3.2.250228 (#23088)
|
||||
- ESP32 enable webcam version 2 (#18732)
|
||||
- ESP8266 enable FTP for >= 4MB variants (#23120)
|
||||
- Update flasher for Sonoff ZBBridge Pro
|
||||
|
||||
### Fixed
|
||||
- Berry prevent `import` from hiding a solidified class (#23112)
|
||||
|
@ -107,7 +107,6 @@ class cc2652_flasher
|
||||
|
||||
# restart the MCU in BSL mode and establish communication
|
||||
def start(debug)
|
||||
if debug == nil debug = false end
|
||||
self.debug = bool(debug)
|
||||
self.reset_bsl()
|
||||
#
|
||||
@ -134,9 +133,9 @@ class cc2652_flasher
|
||||
|
||||
self.ser.write(bytes("5555")) # trigger auto baudrate detector
|
||||
var ret = self.recv_raw(100)
|
||||
if self.debug print("ret=", ret) end
|
||||
if ret != bytes('CC')
|
||||
raise "protocol_error"
|
||||
if self.debug print(f"reset_bsl ret='{ret}'") end
|
||||
if ret[-1] != 0xCC
|
||||
raise "protocol_error", f"received '{ret}'"
|
||||
end
|
||||
end
|
||||
|
||||
@ -218,7 +217,7 @@ class cc2652_flasher
|
||||
if self.debug print("sending:", payload) end
|
||||
self.ser.write(payload)
|
||||
var ret = self.recv_raw(500)
|
||||
if self.debug print("ret=", ret) end
|
||||
if self.debug print(f"ret={ret}") end
|
||||
if no_response == true
|
||||
#ignore
|
||||
self.decode_ack(ret)
|
||||
|
@ -70,7 +70,7 @@ class sonoff_zb_pro_flasher
|
||||
except .. as e, m
|
||||
self.file_checked = false
|
||||
self.file_validated = false
|
||||
raise e, m
|
||||
print(f"FLH: Exception raised '{e}' - '{m}'")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user