serialsend6 - more fixes

oops
This commit is contained in:
George 2020-07-20 10:14:01 +10:00
parent 8a4a0d67ff
commit 2ced749e4d
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}