mirror of https://github.com/arendst/Tasmota.git
Added special char to some values (#18145)
This commit is contained in:
parent
d25ef165b9
commit
f87cd7859a
|
@ -711,7 +711,7 @@ unsigned char TInfo::calcChecksum(char *etiquette, char *valeur, char * horodate
|
||||||
while(*valeur) {
|
while(*valeur) {
|
||||||
c = *valeur++ ;
|
c = *valeur++ ;
|
||||||
// Add another validity check since checksum may not be sufficient (space authorized in Standard mode)
|
// Add another validity check since checksum may not be sufficient (space authorized in Standard mode)
|
||||||
if ( (c>='A' && c<='Z') || (c>='0' && c<='9') || c==' ' || c=='.' || c=='-' || c=='+') {
|
if ( (c>='A' && c<='Z') || (c>='0' && c<='9') || c==' ' || c=='.' || c=='-' || c=='+' || c=='/') {
|
||||||
sum += c ;
|
sum += c ;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue