mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-27 12:20:02 +00:00
apps/blestress: error correction
Failed sending data via L2CAP in test 10 was always assumed to be BLE_HS_ESTALLED error, and it's not always the case.
This commit is contained in:
committed by
Łukasz Rymanowski
parent
240e72f5af
commit
4b6f331748
@@ -844,8 +844,13 @@ rx_stress_10_l2cap_event(struct ble_l2cap_event *event, void *arg)
|
||||
rc = ble_l2cap_send(rx_stress_ctx->chan, data_buf);
|
||||
MODLOG_DFLT(INFO, "Return code=%d\n", rc);
|
||||
if (rc) {
|
||||
MODLOG_DFLT(INFO, "L2CAP stalled - waiting\n");
|
||||
stalled = true;
|
||||
if (rc == BLE_HS_ESTALLED) {
|
||||
MODLOG_DFLT(INFO, "L2CAP stalled - waiting\n");
|
||||
stalled = true;
|
||||
} else {
|
||||
MODLOG_DFLT(INFO, "Sending data via L2CAP failed with error "
|
||||
"code %d\n", rc);
|
||||
}
|
||||
}
|
||||
|
||||
MODLOG_DFLT(INFO, " %d, %d\n", ++send_cnt, data_len);
|
||||
|
||||
Reference in New Issue
Block a user