From 125f4a2ad004231836cf90d82907fd67b74f4673 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:54:00 +0900 Subject: [PATCH] drivers/modem/alt1250: Fix bug that modem version could not be taken Fix bug that modem version could not be taken. --- drivers/modem/alt1250/altcom_cmd.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/modem/alt1250/altcom_cmd.h b/drivers/modem/alt1250/altcom_cmd.h index 53e669c1b9..3d23d15fa5 100644 --- a/drivers/modem/alt1250/altcom_cmd.h +++ b/drivers/modem/alt1250/altcom_cmd.h @@ -128,6 +128,8 @@ #define APICMD_FW_INJECTDATA_MAXLEN (4096) #define APICMD_FW_INJECTDATA_MAXLEN_V4 (3000) +#define APICMD_FW_VER_BB_PRODUCT_LEN (5) +#define APICMD_FW_VER_NP_PACKAGE_LEN (32) #define APICMD_IPV4_LEN (4) #define APICMD_IPV6_LEN (16) @@ -811,8 +813,8 @@ begin_packed_struct struct apicmd_cmddat_setpsmres_s begin_packed_struct struct apicmd_cmddat_getverres_s { uint8_t result; - uint8_t bb_product[LTE_VER_BB_PRODUCT_LEN]; - uint8_t np_package[LTE_VER_NP_PACKAGE_LEN]; + uint8_t bb_product[APICMD_FW_VER_BB_PRODUCT_LEN]; + uint8_t np_package[APICMD_FW_VER_NP_PACKAGE_LEN]; } end_packed_struct; /* structure for APICMDID_FW_INJECTDELTAIMG */