aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/gdb_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/gdb_if.c')
-rw-r--r--src/stm32/gdb_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/gdb_if.c b/src/stm32/gdb_if.c
index 852b43f..c825707 100644
--- a/src/stm32/gdb_if.c
+++ b/src/stm32/gdb_if.c
@@ -39,7 +39,7 @@ void gdb_if_putchar(unsigned char c, int flush)
{
buffer_in[count_in++] = c;
if(flush || (count_in == VIRTUAL_COM_PORT_DATA_SIZE)) {
- while(usbd_ep_write_packet(2, buffer_in, count_in) <= 0);
+ while(usbd_ep_write_packet(1, buffer_in, count_in) <= 0);
count_in = 0;
}
}