mirror of https://github.com/arendst/Tasmota.git
Fix parameter for `wire.endtransmission()` (#18131)
This commit is contained in:
parent
215838db1b
commit
77c654fcdc
|
@ -109,7 +109,7 @@ extern "C" {
|
||||||
TwoWire & myWire = getWire(vm);
|
TwoWire & myWire = getWire(vm);
|
||||||
if (top == 1 || (top == 2 && be_isbool(vm, 2))) { // only 1 argument of type string accepted
|
if (top == 1 || (top == 2 && be_isbool(vm, 2))) { // only 1 argument of type string accepted
|
||||||
bool stop = true;
|
bool stop = true;
|
||||||
if (top == 1) {
|
if (top == 2) {
|
||||||
stop = be_tobool(vm, 2);
|
stop = be_tobool(vm, 2);
|
||||||
}
|
}
|
||||||
uint32_t ret = myWire.endTransmission(stop);
|
uint32_t ret = myWire.endTransmission(stop);
|
||||||
|
|
Loading…
Reference in New Issue