mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
fix bug when checksum was space
This commit is contained in:
parent
df69b70764
commit
86225d5243
@ -778,14 +778,13 @@ ValueList * TInfo::checkLine(char * pline)
|
||||
return NULL;
|
||||
|
||||
p = &buff[0];
|
||||
i = len + 1 ;
|
||||
sep = 0;
|
||||
// Get our own working copy and in the
|
||||
// meantime, calculate separator count for
|
||||
// standard mode (to know if timestamped data)
|
||||
while (i--) {
|
||||
// count separator
|
||||
if (*pline == _separator) {
|
||||
for (i=0 ; i<len ; i++) {
|
||||
// count separator, take care, checksum last one can be space separator
|
||||
if (*pline==_separator && *(pline+1)!='\r') {
|
||||
// Label + sep + Date + sep + Etiquette + sep + Checksum
|
||||
if (++sep >=3){
|
||||
hasts = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user