Fix Wire bug.

This commit is contained in:
Brad Nelson
2021-03-10 11:55:09 -08:00
parent 88008aec2c
commit 13680a6ca0
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@
X("Wire.lastError", WIRE_LAST_ERROR, PUSH Wire.lastError()) \ X("Wire.lastError", WIRE_LAST_ERROR, PUSH Wire.lastError()) \
X("Wire.getErrorText", WIRE_GET_ERROR_TEXT, PUSH Wire.getErrorText(n0)) \ X("Wire.getErrorText", WIRE_GET_ERROR_TEXT, PUSH Wire.getErrorText(n0)) \
X("Wire.beginTransmission", WIRE_BEGIN_TRANSMISSION, Wire.beginTransmission(n0); DROP) \ 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.requestFrom", WIRE_REQUEST_FROM, n0 = Wire.requestFrom(n2, n1, n0); NIPn(2)) \
X("Wire.writeTransmission", WIRE_WRITE_TRANSMISSION, \ X("Wire.writeTransmission", WIRE_WRITE_TRANSMISSION, \
n0 = Wire.writeTransmission(n3, b2, n1, n0); NIPn(3)) \ n0 = Wire.writeTransmission(n3, b2, n1, n0); NIPn(3)) \

View File

@ -251,7 +251,7 @@ Wire.getTimeout ( -- ms )
Wire.lastError ( -- n ) Wire.lastError ( -- n )
Wire.getErrorText ( n -- z ) Wire.getErrorText ( n -- z )
Wire.beginTransmission ( n -- ) Wire.beginTransmission ( n -- )
Wire.endTransmission ( sendstop -- f ) Wire.endTransmission ( sendstop -- f ) Default is true
Wire.requestFrom ( address quantity sendstop -- n ) Wire.requestFrom ( address quantity sendstop -- n )
Wire.writeTransmission ( addr a n sendstop -- err ) Wire.writeTransmission ( addr a n sendstop -- err )
Wire.readTransmission ( addr a n sendstop acount -- err ) Wire.readTransmission ( addr a n sendstop acount -- err )