|
@@ -454,7 +454,7 @@ void MarlinSerial<Cfg>::flush() {
|
454
|
454
|
}
|
455
|
455
|
|
456
|
456
|
template<typename Cfg>
|
457
|
|
-size_t MarlinSerial<Cfg>::write(const uint8_t c) {
|
|
457
|
+void MarlinSerial<Cfg>::write(const uint8_t c) {
|
458
|
458
|
if (Cfg::TX_SIZE == 0) {
|
459
|
459
|
|
460
|
460
|
_written = true;
|
|
@@ -480,7 +480,7 @@ size_t MarlinSerial<Cfg>::write(const uint8_t c) {
|
480
|
480
|
// location". This makes sure flush() won't return until the bytes
|
481
|
481
|
// actually got written
|
482
|
482
|
B_TXC = 1;
|
483
|
|
- return 1;
|
|
483
|
+ return;
|
484
|
484
|
}
|
485
|
485
|
|
486
|
486
|
const uint8_t i = (tx_buffer.head + 1) & (Cfg::TX_SIZE - 1);
|
|
@@ -510,7 +510,6 @@ size_t MarlinSerial<Cfg>::write(const uint8_t c) {
|
510
|
510
|
// Enable TX ISR - Non atomic, but it will eventually enable TX ISR
|
511
|
511
|
B_UDRIE = 1;
|
512
|
512
|
}
|
513
|
|
- return 1;
|
514
|
513
|
}
|
515
|
514
|
|
516
|
515
|
template<typename Cfg>
|