fix compilation with newer Arduino framework (#20641)

This commit is contained in:
Christian Baars 2024-02-02 11:09:43 +01:00 committed by GitHub
parent 9c45a51f67
commit c24c0a53c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {