Skip to content

Commit f40a6a8

Browse files
evenlrlubos
authored andcommitted
lib: at_host: fix unresponsiveness after memory error
The AT host library driver did not enable the uart reception interrupt when the at_write_cmd function failed because of a non-AT related issue. It will now treat such errors as the generic AT error. Signed-off-by: Even Falch-Larsen <[email protected]>
1 parent e8e2227 commit f40a6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/at_host/at_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void cmd_send(struct k_work *work)
8686
err = at_cmd_write(at_buf, buf, AT_MAX_CMD_LEN, &state);
8787
if (err < 0) {
8888
LOG_ERR("Could not send AT command to modem: %d", err);
89-
return;
89+
state = AT_CMD_ERROR;
9090
}
9191

9292
switch (state) {

0 commit comments

Comments
 (0)