mirror of https://github.com/arendst/Tasmota.git
parent
8a4a0d67ff
commit
2ced749e4d
|
@ -909,9 +909,9 @@ void SerialSendRaw(char *codes)
|
|||
// values is a comma-delimited string: e.g. "72,101,108,108,111,32,87,111,114,108,100,33,10"
|
||||
void SerialSendDecimal(char *values)
|
||||
{
|
||||
char* &p;
|
||||
char *p;
|
||||
uint8_t code;
|
||||
for (str = strtok_r(values, ",", &p); str; str = strtok_r(nullptr, ",", &p)) {
|
||||
for (char* str = strtok_r(values, ",", &p); str; str = strtok_r(nullptr, ",", &p)) {
|
||||
code = (uint8_t)atoi(str);
|
||||
Serial.write(code);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue