Misc general spacing cleanup

This commit is contained in:
Scott Lahteine
2017-10-06 15:13:43 -05:00
parent c0382cd8cd
commit 9fe7f53216
6 changed files with 10 additions and 10 deletions

View File

@ -496,7 +496,7 @@
}
void MarlinSerial::writeNoHandshake(const uint8_t c) {
while (!TEST(M_UCSRxA, M_UDREx)) ;
while (!TEST(M_UCSRxA, M_UDREx)) { /* nada */ }
M_UDRx = c;
}

View File

@ -107,15 +107,15 @@
#else
typedef uint8_t ring_buffer_pos_t;
#endif
#if ENABLED(SERIAL_STATS_DROPPED_RX)
extern uint8_t rx_dropped_bytes;
#endif
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
extern ring_buffer_pos_t rx_max_enqueued;
#endif
#endif
class MarlinSerial { //: public Stream
public:
@ -140,7 +140,7 @@
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
FORCE_INLINE static ring_buffer_pos_t rxMaxEnqueued() { return rx_max_enqueued; }
#endif
#endif
static FORCE_INLINE void write(const char* str) { while (*str) write(*str++); }
static FORCE_INLINE void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }