From c24c0a53c06ec2d70a27b38c561382d3fed90877 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Fri, 2 Feb 2024 11:09:43 +0100 Subject: [PATCH] fix compilation with newer Arduino framework (#20641) --- tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino index 1518ce518..f982e9ea4 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino @@ -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 {