Add debug logging to overflow/error paths, fix pipeline=2 drop

This commit is contained in:
Ian Gulliver
2026-04-11 09:48:25 +09:00
parent f7baf60249
commit aa349e1a36
5 changed files with 24 additions and 11 deletions

View File

@@ -8,9 +8,10 @@
struct usb_cdc {
ring_buffer<uint8_t, 8192> tx;
void send(std::span<const uint8_t> data) {
tx.push(data);
bool send(std::span<const uint8_t> data) {
if (!tx.push(data)) return false;
drain();
return true;
}
void send(const std::vector<uint8_t>& data) {