From 13680a6ca015f2737e80be8aad53917a6a8e9f7d Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Wed, 10 Mar 2021 11:55:09 -0800 Subject: [PATCH] Fix Wire bug. --- ueforth/arduino/arduino.template.ino | 2 +- ueforth/site/ESP32forth.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ueforth/arduino/arduino.template.ino b/ueforth/arduino/arduino.template.ino index 450756a..532f1d8 100644 --- a/ueforth/arduino/arduino.template.ino +++ b/ueforth/arduino/arduino.template.ino @@ -212,7 +212,7 @@ X("Wire.lastError", WIRE_LAST_ERROR, PUSH Wire.lastError()) \ X("Wire.getErrorText", WIRE_GET_ERROR_TEXT, PUSH Wire.getErrorText(n0)) \ X("Wire.beginTransmission", WIRE_BEGIN_TRANSMISSION, Wire.beginTransmission(n0); DROP) \ - X("Wire.endTransmission", WIRE_END_TRANSMISSION, PUSH Wire.endTransmission(n0)) \ + X("Wire.endTransmission", WIRE_END_TRANSMISSION, SET Wire.endTransmission(n0)) \ X("Wire.requestFrom", WIRE_REQUEST_FROM, n0 = Wire.requestFrom(n2, n1, n0); NIPn(2)) \ X("Wire.writeTransmission", WIRE_WRITE_TRANSMISSION, \ n0 = Wire.writeTransmission(n3, b2, n1, n0); NIPn(3)) \ diff --git a/ueforth/site/ESP32forth.html b/ueforth/site/ESP32forth.html index 1151c81..623dac7 100644 --- a/ueforth/site/ESP32forth.html +++ b/ueforth/site/ESP32forth.html @@ -251,7 +251,7 @@ Wire.getTimeout ( -- ms ) Wire.lastError ( -- n ) Wire.getErrorText ( n -- z ) Wire.beginTransmission ( n -- ) -Wire.endTransmission ( sendstop -- f ) +Wire.endTransmission ( sendstop -- f ) Default is true Wire.requestFrom ( address quantity sendstop -- n ) Wire.writeTransmission ( addr a n sendstop -- err ) Wire.readTransmission ( addr a n sendstop acount -- err )