Skip to content

Commit 9977fa3

Browse files
committed
Make white space consistent
1 parent b993249 commit 9977fa3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

libraries/Wire/Wire.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ uint8_t TwoWire::requestFrom(uint8_t address, size_t quantity, bool stopBit)
8282
}
8383
sercom->prepareNackBitWIRE(); // Prepare NACK to stop slave transmission
8484
//sercom->readDataWIRE(); // Clear data register to send NACK
85-
86-
repeatedStart = !stopBit;
87-
if (stopBit)
88-
{
89-
sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP); // Send Stop
90-
}
85+
86+
repeatedStart = !stopBit;
87+
if (stopBit)
88+
{
89+
sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP); // Send Stop
90+
}
9191
}
9292

9393
return byteRead;
@@ -137,7 +137,7 @@ uint8_t TwoWire::endTransmission(bool stopBit)
137137
repeatedStart = !stopBit;
138138
if (stopBit)
139139
{
140-
sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP);
140+
sercom->prepareCommandBitsWire(WIRE_MASTER_ACT_STOP);
141141
}
142142

143143
return 0;

libraries/Wire/Wire.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class TwoWire : public Stream
6767
uint8_t _uc_pinSCL;
6868

6969
bool transmissionBegun;
70-
bool repeatedStart;
71-
70+
bool repeatedStart;
71+
7272
// RX Buffer
7373
RingBuffer rxBuffer;
7474

0 commit comments

Comments
 (0)