mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 06:27:01 +01:00
@@ -152,7 +152,7 @@ class Nextion : Driver
|
|||||||
def split_55(b)
|
def split_55(b)
|
||||||
var ret = []
|
var ret = []
|
||||||
var s = size(b)
|
var s = size(b)
|
||||||
var i = s-1 # start from last
|
var i = s-2 # start from last-1
|
||||||
while i > 0
|
while i > 0
|
||||||
if b[i] == 0x55 && b[i+1] == 0xBB
|
if b[i] == 0x55 && b[i+1] == 0xBB
|
||||||
ret.push(b[i..s-1]) # push last msg to list
|
ret.push(b[i..s-1]) # push last msg to list
|
||||||
|
|||||||
Reference in New Issue
Block a user