summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/console')
-rw-r--r--src/console/usbdebug_console.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/console/usbdebug_console.c b/src/console/usbdebug_console.c
index 99726bed73..cb627bb96a 100644
--- a/src/console/usbdebug_console.c
+++ b/src/console/usbdebug_console.c
@@ -34,12 +34,7 @@ static void dbgp_tx_byte(unsigned char data)
static unsigned char dbgp_rx_byte(void)
{
- unsigned char data = 0xff;
-
- if (dbgp_ep_is_active(dbgp_console_input()))
- dbgp_bulk_read_x(dbgp_console_input(), &data, 1);
-
- return data;
+ return usbdebug_rx_byte(dbgp_console_input());
}
static void dbgp_tx_flush(void)