Skip to content

Commit

Permalink
add some delay during flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 committed Dec 23, 2022
1 parent d17f8c6 commit e4a4917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasmota/autoexec.be
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class Nextion : Driver
if (self.flash_mode==1)
var strv = msg[0..-4].asstring()
if string.find(strv,"comok 2")>=0
tasmota.delay(50)
log("FLH: Send (High Speed) flash start")
self.flash_start_millis = tasmota.millis()
#self.sendnx(string.format("whmi-wris %d,115200,res0",self.flash_size))
Expand All @@ -162,6 +163,7 @@ class Nextion : Driver
self.sendnx(string.format("whmi-wris %d,%d,res0",self.flash_size,self.flash_proto_baud))
end
if self.flash_proto_baud != 115200
tasmota.delay(50)
self.ser.deinit()
self.ser = serial(17, 16, self.flash_proto_baud, serial.SERIAL_8N1)
end
Expand Down

0 comments on commit e4a4917

Please sign in to comment.