From 66f69cf21f4deff0f2f897aa56f15af1010cf9f3 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 10 Apr 2022 15:38:03 +0200 Subject: [PATCH] fix for inital flash --- tasmota/autoexec-beta.be | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasmota/autoexec-beta.be b/tasmota/autoexec-beta.be index 9db77af9..ad0be64e 100644 --- a/tasmota/autoexec-beta.be +++ b/tasmota/autoexec-beta.be @@ -162,9 +162,11 @@ class Nextion : Driver self.awaiting_offset = 0 self.flash_offset = msg.get(0,4) log("FLH: Flash offset marker "+str(self.flash_offset),3) - self.open_url_at(self.url, self.flash_offset) - self.flash_written = self.flash_offset - self.flash_offset = 0 + if self.flash_offset != 0 + self.open_url_at(self.url, self.flash_offset) + self.flash_written = self.flash_offset + self.flash_offset = 0 + end self.write_block() elif size(msg)==1 && msg[0]==0x05 self.write_block()