Browse Source

Style tweak in MarlinSerialUSB_Due.h

pull/1/head
Scott Lahteine 7 years ago
parent
commit
0106c3e476
  1. 8
      Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h

8
Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h

@ -59,10 +59,10 @@ public:
FORCE_INLINE static int rxMaxEnqueued() { return 0; }
#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++); }
static FORCE_INLINE void print(const String& s) { for (int i = 0; i < (int)s.length(); i++) write(s[i]); }
static FORCE_INLINE void print(const char* str) { write(str); }
FORCE_INLINE static void write(const char* str) { while (*str) write(*str++); }
FORCE_INLINE static void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }
FORCE_INLINE static void print(const String& s) { for (int i = 0; i < (int)s.length(); i++) write(s[i]); }
FORCE_INLINE static void print(const char* str) { write(str); }
static void print(char, int = 0);
static void print(unsigned char, int = 0);

Loading…
Cancel
Save