Skip to content

Commit b16d6cc

Browse files
committed
tom_modem: fix transport_send_at_with_response call in sms_send
Signed-off-by: libiunc <libriunc@gmail.com>
1 parent 614bfd2 commit b16d6cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/tom_modem/src/operations.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int sms_send(PROFILE_T *profile, void *transport_ptr)
158158
char send_sms_cmd[32];
159159
char pdu_hex[512];
160160
char send_sms_cmd2[514];
161-
char send_sms_response[64];
161+
char *send_sms_response = NULL;
162162
int result;
163163
int ascii_code;
164164

@@ -186,7 +186,7 @@ int sms_send(PROFILE_T *profile, void *transport_ptr)
186186
usleep(10000); // 10ms delay
187187

188188
// Send PDU data and wait for +CMGS response
189-
result = transport_send_at_with_response(transport, profile, send_sms_cmd2, "+CMGS:", 1, send_sms_response);
189+
result = transport_send_at_with_response(transport, profile, send_sms_cmd2, "+CMGS:", 1, &send_sms_response);
190190
if (result != SUCCESS) {
191191
dbg_msg("Error sending SMS PDU, error code: %d", result);
192192
return result;

0 commit comments

Comments
 (0)