changeset 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 ac311a48630e
files uptools/atcmd/smsend_pdu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/uptools/atcmd/smsend_pdu.c	Mon Mar 05 01:47:18 2018 +0000
+++ b/uptools/atcmd/smsend_pdu.c	Mon Mar 05 02:58:13 2018 +0000
@@ -35,6 +35,6 @@
 		cmdname = "CMGS";
 		callback = 0;
 	}
-	sprintf(send_cmd, "AT+%s=%u", cmdname, pdulen + 1);
+	sprintf(send_cmd, "AT+%s=%u", cmdname, pdulen);
 	atinterf_exec_cmd_needok(send_cmd, pduhex, callback);
 }