wifi: esp_at: log message on async close
Log a message when the modem asynchronously closes a link. This is useful information to the user as it can explain the root cause of later failures. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
84089d30eb
commit
9d58fa7ac9
|
@ -509,6 +509,8 @@ MODEM_CMD_DEFINE(on_cmd_closed)
|
|||
|
||||
link_id = data->match_buf[0] - '0';
|
||||
|
||||
LOG_DBG("Link %d closed", link_id);
|
||||
|
||||
dev = CONTAINER_OF(data, struct esp_data, cmd_handler_data);
|
||||
sock = esp_socket_ref_from_link_id(dev, link_id);
|
||||
if (!sock) {
|
||||
|
|
Loading…
Reference in a new issue