Update flasher for Sonoff ZBBridge Pro (#23136)

This commit is contained in:
s-hadinger 2025-03-11 23:04:51 +01:00 committed by GitHub
parent f3ae3bec4b
commit 16e9d105ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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