Add debug logging to overflow/error paths, fix pipeline=2 drop
This commit is contained in:
@@ -22,7 +22,10 @@ static std::vector<net_frame_callback> frame_callbacks;
|
||||
|
||||
void net_send_raw(std::span<const uint8_t> data) {
|
||||
dlog_if_slow("net_send_raw", 1000, [&]{
|
||||
w6300::send(raw_socket, data);
|
||||
auto result = w6300::send(raw_socket, data);
|
||||
if (!result)
|
||||
dlogf("w6300 send failed: %zu bytes, err %d",
|
||||
data.size(), static_cast<int>(result.error()));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user