comparison uptools/atcmd/smsend_pdu.c @ 363:46cf847781bd

fcup-smsend: buglet in PDU mode length manipulations
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 05 Mar 2018 02:58:13 +0000
parents 89fe66cb60f6
children
comparison
equal deleted inserted replaced
362:89fe66cb60f6 363:46cf847781bd
33 callback = cmgw_callback; 33 callback = cmgw_callback;
34 } else { 34 } else {
35 cmdname = "CMGS"; 35 cmdname = "CMGS";
36 callback = 0; 36 callback = 0;
37 } 37 }
38 sprintf(send_cmd, "AT+%s=%u", cmdname, pdulen + 1); 38 sprintf(send_cmd, "AT+%s=%u", cmdname, pdulen);
39 atinterf_exec_cmd_needok(send_cmd, pduhex, callback); 39 atinterf_exec_cmd_needok(send_cmd, pduhex, callback);
40 } 40 }