Keep "astyled" elements in MarlinSerial.*

This commit is contained in:
Scott Lahteine
2015-10-02 23:12:16 -07:00
parent f844d18724
commit 9ab5401df3
2 changed files with 33 additions and 32 deletions

View File

@@ -102,7 +102,8 @@ void MarlinSerial::end() {
int MarlinSerial::peek(void) {
if (rx_buffer.head == rx_buffer.tail) {
return -1;
} else {
}
else {
return rx_buffer.buffer[rx_buffer.tail];
}
}
@@ -162,7 +163,8 @@ void MarlinSerial::print(long n, int base) {
n = -n;
}
printNumber(n, 10);
} else {
}
else {
printNumber(n, base);
}
}

View File

@@ -99,7 +99,6 @@ class MarlinSerial { //: public Stream
FORCE_INLINE void write(uint8_t c) {
while (!TEST(M_UCSRxA, M_UDREx))
;
M_UDRx = c;
}