mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
drivers/modem/alt1250: Fix bug that errno was not converted correctly
Fix bug that errno was not converted correctly.
This commit is contained in:
committed by
Petro Karashchenko
parent
125f4a2ad0
commit
a3d17a18a7
@@ -122,7 +122,7 @@ int32_t altcom_errinfo_pkt_parse(FAR struct alt1250_dev_s *dev,
|
||||
|
||||
info->err_indicator = in->indicator;
|
||||
info->err_result_code = ntohl(in->err_code);
|
||||
info->err_no = altcom_errno2nuttx(ntohl(in->err_no));
|
||||
info->err_no = altcom_geterrcode(in->err_no);
|
||||
memcpy(info->err_string, in->err_str, LTE_ERROR_STRING_MAX_LEN);
|
||||
info->err_string[LTE_ERROR_STRING_MAX_LEN - 1] = '\0';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user