fix: increase SMS buffer size and enhance error logging for SMS decoding

This commit is contained in:
fujr 2025-03-15 15:34:11 +08:00
parent 8ed5ae70b8
commit 5e1dd089da
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@
#define SEND_SMS "AT+CMGS=%d" #define SEND_SMS "AT+CMGS=%d"
#define DELETE_SMS "AT+CMGD=%d" #define DELETE_SMS "AT+CMGD=%d"
#define SMS_BUF_SIZE 16384 #define SMS_BUF_SIZE 65536
#define LINE_BUF 1024 #define LINE_BUF 1024
#define SMS_LIST_SIZE 128 #define SMS_LIST_SIZE 128
#define COMMON_BUF_SIZE 16384 #define COMMON_BUF_SIZE 16384

View File

@ -149,7 +149,7 @@ int sms_read(PROFILE_T *profile,FDS_T *fds)
} }
else else
{ {
dbg_msg("Error decoding sms"); dbg_msg("Error decoding sms in line: %s", line);
destroy_sms(sms); destroy_sms(sms);
} }
} }