FreeCalypso > hg > freecalypso-tools
comparison uptools/atcmd/smsend_pduin.c @ 467:dc2fd8e6f42c
uptools/atcmd: null pointer passing fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Feb 2019 22:17:46 +0000 |
parents | 3eb92855f7b9 |
children |
comparison
equal
deleted
inserted
replaced
466:5bcf12be0834 | 467:dc2fd8e6f42c |
---|---|
59 { | 59 { |
60 if (initdone) | 60 if (initdone) |
61 return(0); | 61 return(0); |
62 atinterf_init(); | 62 atinterf_init(); |
63 /* enable verbose error messages */ | 63 /* enable verbose error messages */ |
64 atinterf_exec_cmd_needok("AT+CMEE=2", 0, 0); | 64 atinterf_exec_cmd_needok("AT+CMEE=2", (char *) 0, (void *) 0); |
65 /* set PDU mode */ | 65 /* set PDU mode */ |
66 prep_for_pdu_mode(); | 66 prep_for_pdu_mode(); |
67 if (sms_write_mode == 0 && more_input()) { | 67 if (sms_write_mode == 0 && more_input()) { |
68 atinterf_exec_cmd_needok("AT+CMMS=1", 0, 0); | 68 atinterf_exec_cmd_needok("AT+CMMS=1", (char *) 0, (void *) 0); |
69 cmms_done = 1; | 69 cmms_done = 1; |
70 } | 70 } |
71 initdone = 1; | 71 initdone = 1; |
72 return(1); | 72 return(1); |
73 } | 73 } |
107 for (lineno = 1; fgets(input_line, sizeof input_line, stdin); lineno++) | 107 for (lineno = 1; fgets(input_line, sizeof input_line, stdin); lineno++) |
108 process_line(); | 108 process_line(); |
109 if (!initdone) | 109 if (!initdone) |
110 exit(0); | 110 exit(0); |
111 if (cmms_done) | 111 if (cmms_done) |
112 atinterf_exec_cmd_needok("AT+CMMS=0", 0, 0); | 112 atinterf_exec_cmd_needok("AT+CMMS=0", (char *) 0, (void *) 0); |
113 if (sms_write_mode == 1) | 113 if (sms_write_mode == 1) |
114 sendafterwr_process(); | 114 sendafterwr_process(); |
115 exit(0); | 115 exit(0); |
116 } | 116 } |