diff --git a/tasmota/nextion.be b/tasmota/nextion.be index c7108310..eee0dc32 100644 --- a/tasmota/nextion.be +++ b/tasmota/nextion.be @@ -152,7 +152,7 @@ class Nextion : Driver def split_55(b) var ret = [] var s = size(b) - var i = s-1 # start from last + var i = s-2 # start from last-1 while i > 0 if b[i] == 0x55 && b[i+1] == 0xBB ret.push(b[i..s-1]) # push last msg to list