From 77c654fcdc1066374bd4f6cfcd2641061009ad37 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 7 Mar 2023 20:01:42 +0200 Subject: [PATCH] Fix parameter for `wire.endtransmission()` (#18131) --- 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 d453455a7..c78f30960 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_wire.ino @@ -109,7 +109,7 @@ extern "C" { TwoWire & myWire = getWire(vm); if (top == 1 || (top == 2 && be_isbool(vm, 2))) { // only 1 argument of type string accepted bool stop = true; - if (top == 1) { + if (top == 2) { stop = be_tobool(vm, 2); } uint32_t ret = myWire.endTransmission(stop);