We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e34d8c6 commit 6320016Copy full SHA for 6320016
application/tom_modem/src/operations.c
@@ -101,7 +101,7 @@ int sms_read(PROFILE_T *profile, void *transport_ptr)
101
char *line = strtok(response_text, "\n");
102
int sms_count = 0;
103
104
- while (line != NULL)
+ while (line != NULL || line == "\n")
105
{
106
if (strncmp(line, "+CMGL:", 6) == 0)
107
@@ -216,7 +216,7 @@ int sms_read_unread(PROFILE_T *profile, void *transport_ptr)
216
217
218
219
220
221
222
0 commit comments