From 8a14aeb4a90429f757d636a29f881ac946bc9420 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sun, 10 Apr 2022 14:38:18 +0200 Subject: [PATCH] removed couting --- tasmota/autoexec-beta.be | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tasmota/autoexec-beta.be b/tasmota/autoexec-beta.be index 441e6245..31e327f8 100644 --- a/tasmota/autoexec-beta.be +++ b/tasmota/autoexec-beta.be @@ -274,22 +274,6 @@ class Nextion : Driver var s = headers[i+size(tag)..i2-1] self.flash_size=int(s) end - if self.flash_size==0 - log("FLH: No size header, counting ...",3) - self.flash_size = size(self.flash_buff) - #print("counting start ...") - while self.tcp.connected() - while self.tcp.available()>0 - self.flash_size += size(self.tcp.readbytes()) - end - tasmota.delay(50) - end - #print("counting end ...",self.flash_size) - self.tcp.close() - self.open_url(url) - else - log("FLH: Size found in header, skip count",3) - end log("FLH: Flash file size: "+str(self.flash_size),3) end