From 9977fa34679735b9dc970780318cbce19002faae Mon Sep 17 00:00:00 2001 From: Sandeep Mistry <s.mistry@arduino.cc> Date: Tue, 17 Nov 2015 17:34:25 -0500 Subject: [PATCH] Make white space consistent --- libraries/Wire/Wire.cpp | 14 +++++++------- libraries/Wire/Wire.h | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/Wire/Wire.cpp b/libraries/Wire/Wire.cpp index 00c26141..c4747947 100644 --- a/libraries/Wire/Wire.cpp +++ b/libraries/Wire/Wire.cpp @@ -82,12 +82,12 @@ uint8_t TwoWire::requestFrom(uint8_t address, size_t quantity, bool stopBit) } sercom->prepareNackBitWIRE(); // Prepare NACK to stop slave transmission //sercom->readDataWIRE(); // Clear data register to send NACK - - repeatedStart = !stopBit; - if (stopBit) - { - sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP); // Send Stop - } + + repeatedStart = !stopBit; + if (stopBit) + { + sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP); // Send Stop + } } return byteRead; @@ -137,7 +137,7 @@ uint8_t TwoWire::endTransmission(bool stopBit) repeatedStart = !stopBit; if (stopBit) { - sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP); + sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP); } return 0; diff --git a/libraries/Wire/Wire.h b/libraries/Wire/Wire.h index cdff10de..bc2968ab 100644 --- a/libraries/Wire/Wire.h +++ b/libraries/Wire/Wire.h @@ -67,8 +67,8 @@ class TwoWire : public Stream uint8_t _uc_pinSCL; bool transmissionBegun; - bool repeatedStart; - + bool repeatedStart; + // RX Buffer RingBuffer rxBuffer; -- GitLab