Fix parameter for `wire.endtransmission()` (#18131)

This commit is contained in:
s-hadinger 2023-03-07 20:01:42 +02:00 committed by GitHub
parent 215838db1b
commit 77c654fcdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);