From 833c2e54a135c38feb438cee397eb83eaec3710a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 25 Feb 2019 13:47:55 -0600 Subject: [PATCH] Add an empty flushTX to MarlinSerialUSB_Due --- Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp | 4 ++-- Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp b/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp index 4f6b4915f..7b1100dd9 100644 --- a/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp +++ b/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp @@ -114,8 +114,8 @@ bool MarlinSerialUSB::available(void) { (usb_task_cdc_isenabled() && udi_cdc_is_rx_ready()); } -void MarlinSerialUSB::flush(void) { -} +void MarlinSerialUSB::flush(void) { } +void MarlinSerialUSB::flushTX(void) { } void MarlinSerialUSB::write(const uint8_t c) { diff --git a/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h b/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h index 65f829e2a..5025b8228 100644 --- a/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h +++ b/Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h @@ -46,6 +46,7 @@ public: static int peek(void); static int read(void); static void flush(void); + static void flushTX(void); static bool available(void); static void write(const uint8_t c);