mirror of https://github.com/arendst/Tasmota.git
fix compilation with newer Arduino framework (#20641)
This commit is contained in:
parent
9c45a51f67
commit
c24c0a53c0
|
@ -164,7 +164,7 @@ extern "C" {
|
|||
myWire.write(value);
|
||||
} else if (be_isstring(vm, 2)) {
|
||||
const char * s = be_tostring(vm, 1);
|
||||
myWire.write(s);
|
||||
myWire.write((uint8_t*) s, strlen(s));
|
||||
} else if ((buf = be_tobytes(vm, 2, &len)) != nullptr) {
|
||||
myWire.write((uint8_t*) buf, len);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue