added comment about panels with firmware < 126

This commit is contained in:
joBr99
2022-02-08 22:28:36 +01:00
parent 2cf50996e0
commit f3db7d536f
2 changed files with 2 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ Send's normal Custom Commands to the Screen in the following format:
- `FlashNextion URL`
Start's flashing a tft file to the nextion screen via Nextion Upload Protocol 1.2
Might be required to send the command twice (known issue, didn't investigate yet)
Webserver must be reachable via HTTP and support Range Header

View File

@@ -263,6 +263,7 @@ class Nextion : Driver
if (self.flash_mode==1)
var str = msg[0..-4].asstring()
log(str, 3)
# TODO: add check for firmware versions < 126 and send proto 1.1 command for thoose
if (string.find(str,"comok 2")==0)
#self.sendnx(string.format("whmi-wri %d,115200,1",self.flash_size)) # Nextion Upload Protocol 1.1
self.sendnx(string.format("whmi-wris %d,115200,1",self.flash_size)) # Nextion Upload Protocol 1.2