mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +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;
|
return NULL;
|
||||||
|
|
||||||
p = &buff[0];
|
p = &buff[0];
|
||||||
i = len + 1 ;
|
|
||||||
sep = 0;
|
sep = 0;
|
||||||
// Get our own working copy and in the
|
// Get our own working copy and in the
|
||||||
// meantime, calculate separator count for
|
// meantime, calculate separator count for
|
||||||
// standard mode (to know if timestamped data)
|
// standard mode (to know if timestamped data)
|
||||||
while (i--) {
|
for (i=0 ; i<len ; i++) {
|
||||||
// count separator
|
// count separator, take care, checksum last one can be space separator
|
||||||
if (*pline == _separator) {
|
if (*pline==_separator && *(pline+1)!='\r') {
|
||||||
// Label + sep + Date + sep + Etiquette + sep + Checksum
|
// Label + sep + Date + sep + Etiquette + sep + Checksum
|
||||||
if (++sep >=3){
|
if (++sep >=3){
|
||||||
hasts = true;
|
hasts = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user