FreeCalypso > hg > freecalypso-tools
comparison uptools/atcmd/atinterf.c @ 351:f0e9bb28b4d6
uptools/atcmd/atinterf.c: no target debug mode implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 04 Feb 2018 18:44:41 +0000 |
parents | 9ffaeb6fea1a |
children |
comparison
equal
deleted
inserted
replaced
350:9ffaeb6fea1a | 351:f0e9bb28b4d6 |
---|---|
162 char *command, *message; | 162 char *command, *message; |
163 void (*callback)(); | 163 void (*callback)(); |
164 { | 164 { |
165 char *nl; | 165 char *nl; |
166 | 166 |
167 if (no_target_mode) { | |
168 puts(command); | |
169 if (message) | |
170 puts(message); | |
171 strcpy(at_response, "FOK"); | |
172 return(0); | |
173 } | |
167 if (message) { | 174 if (message) { |
168 fputs("c+m\n", cpipeF); | 175 fputs("c+m\n", cpipeF); |
169 fprintf(cpipeF, "%s\n", command); | 176 fprintf(cpipeF, "%s\n", command); |
170 fprintf(cpipeF, "%s\n", message); | 177 fprintf(cpipeF, "%s\n", message); |
171 } else | 178 } else |