FreeCalypso > hg > freecalypso-tools
changeset 371:0bd06f481223
fcup-smsend: automatic -q (concat quiet) with -W
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 08 Mar 2018 17:57:36 +0000 |
parents | 076d533f840d |
children | 1e7c6fcb9abe |
files | uptools/atcmd/smsend_main.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/uptools/atcmd/smsend_main.c Thu Mar 08 17:47:58 2018 +0000 +++ b/uptools/atcmd/smsend_main.c Thu Mar 08 17:57:36 2018 +0000 @@ -12,8 +12,8 @@ #define MAX_MSG_CHARS (153*255) -int sms_write_mode, text_mode, utf8_input, quiet; -int concat_enable, concat_refno_set; +int sms_write_mode, text_mode, utf8_input; +int concat_enable, concat_refno_set, concat_quiet; u_char dest_addr[12]; char msgtext[MAX_MSG_CHARS*2+2]; u_char msgtext_gsm7[MAX_MSG_CHARS]; @@ -40,7 +40,7 @@ concat_refno_set = 1; continue; case 'q': - quiet = 1; + concat_quiet = 1; continue; case 't': text_mode = 1; @@ -53,6 +53,7 @@ continue; case 'W': sms_write_mode = 2; + concat_quiet = 1; continue; default: /* error msg already printed */ @@ -185,7 +186,7 @@ send_in_pdu_mode(dest_addr, msgtext_gsm7, msgtext_gsmlen, 0, 0); if (sms_write_mode == 1) sendafterwr_process(); - if (concat_enable && !quiet) + if (concat_enable && !concat_quiet) printf("Message sent as single SMS\n"); exit(0); } @@ -217,7 +218,7 @@ atinterf_exec_cmd_needok("AT+CMMS=0", 0, 0); if (sms_write_mode == 1) sendafterwr_process(); - if (!quiet) + if (!concat_quiet) printf("Message sent as %u SMS segments\n", nparts); exit(0); }