aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/gdb_if.c
diff options
context:
space:
mode:
authorGareth McMullin2011-02-12 22:06:53 +1300
committerGareth McMullin2011-02-12 22:06:53 +1300
commitdf5c3d06d591c8408e31d7068c9e7c600f3c7e9e (patch)
treea251203a0eb3f8b926ef93e90003580add5e8d0b /src/stm32/gdb_if.c
parentf293cc4bc19409ac77287f0e7298801d55e42b11 (diff)
Added extra ACM interface for serial emulation using USART1.
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;
}
}