Skip to content

Commit

Permalink
usb_serial: send notification packets from the correct endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
brainsmoke authored and dragonmux committed Nov 22, 2023
1 parent 8f9d7fd commit 39cb6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/common/usb_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ void usb_serial_set_config(usbd_device *dev, uint16_t value)
/* Notify the host that DCD is asserted.
* Allows the use of /dev/tty* devices on *BSD/MacOS
*/
usb_serial_set_state(dev, GDB_IF_NO, CDCACM_GDB_ENDPOINT);
usb_serial_set_state(dev, UART_IF_NO, CDCACM_UART_ENDPOINT);
usb_serial_set_state(dev, GDB_IF_NO, CDCACM_GDB_ENDPOINT + 1U);
usb_serial_set_state(dev, UART_IF_NO, CDCACM_UART_ENDPOINT + 1U);

#if defined(ENABLE_DEBUG) && defined(PLATFORM_HAS_DEBUG)
initialise_monitor_handles();
Expand Down

0 comments on commit 39cb6d6

Please sign in to comment.