Skip to content

Commit

Permalink
zephyr: prevent race condition from triggering this assert when uncon…
Browse files Browse the repository at this point in the history
…figuring
  • Loading branch information
benedekkupper committed Sep 17, 2024
1 parent 3cdccdf commit f17aae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2usb/port/zephyr/udc_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void udc_mac::process_ep_event(net_buf* buf)
return;
}
}
assert(false); // a net_buf was issued out of c2usb scope
assert(ep_bufs_.size() == 0); // a net_buf was issued out of c2usb scope
}
else
{
Expand Down

0 comments on commit f17aae1

Please sign in to comment.