aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Wilkins <BrentWilkins@users.noreply.github.com>2016-01-18 13:12:11 -0700
committerBrent Wilkins <BrentWilkins@users.noreply.github.com>2016-01-18 13:12:11 -0700
commit258172f6ab137c0c75fe6deb541d6705cfe6cdfb (patch)
treed7af9127f5b07ad3729e0761a40220266a306e4b
parent44a2d433a2ad93fa27714f6e77cf56a3dda79efb (diff)
Update Wire.cpp
Removed implicit conversions from unsigned, to signed, back to unsigned.
-rw-r--r--libraries/Wire/Wire.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/Wire/Wire.cpp b/libraries/Wire/Wire.cpp
index 2bd48ed..7944fcb 100644
--- a/libraries/Wire/Wire.cpp
+++ b/libraries/Wire/Wire.cpp
@@ -169,7 +169,7 @@ void TwoWire::beginTransmission(int address)
uint8_t TwoWire::endTransmission(uint8_t sendStop)
{
// transmit buffer (blocking)
- int8_t ret = twi_writeTo(txAddress, txBuffer, txBufferLength, 1, sendStop);
+ uint8_t ret = twi_writeTo(txAddress, txBuffer, txBufferLength, 1, sendStop);
// reset tx buffer iterator vars
txBufferIndex = 0;
txBufferLength = 0;