mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
fixed comment
This commit is contained in:
@@ -264,8 +264,8 @@ class Nextion : Driver
|
|||||||
var str = msg[0..-4].asstring()
|
var str = msg[0..-4].asstring()
|
||||||
log(str, 3)
|
log(str, 3)
|
||||||
if (string.find(str,"comok 2")==0)
|
if (string.find(str,"comok 2")==0)
|
||||||
self.sendnx(string.format("whmi-wris %d,115200,1",self.flash_size)) # Nextion Upload Protocol 1.2, needs some more testing
|
|
||||||
#self.sendnx(string.format("whmi-wri %d,115200,1",self.flash_size)) # Nextion Upload Protocol 1.1
|
#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
|
||||||
|
|
||||||
# skip to byte (upload protocol 1.2)
|
# skip to byte (upload protocol 1.2)
|
||||||
elif (size(msg)==1 && msg[0]==0x08)
|
elif (size(msg)==1 && msg[0]==0x08)
|
||||||
|
|||||||
Reference in New Issue
Block a user