Closed borgmon closed 9 months ago
Sometimes when connect to a host via usb serial, the ring buffer overflow and causes both host and hp5 to freeze.
This PR adds a check to rx throttle and prevents it from overflowing.
The method is directly from zephyr official guide https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/subsys/usb/cdc_acm/src/main.c
Thank you @borgmon for submitting our first PR ! I will review and merge this.
Sometimes when connect to a host via usb serial, the ring buffer overflow and causes both host and hp5 to freeze.
This PR adds a check to rx throttle and prevents it from overflowing.
The method is directly from zephyr official guide https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/subsys/usb/cdc_acm/src/main.c