2121#include " ATCmdParser.h"
2222#include " mbed_poll.h"
2323#include " mbed_debug.h"
24- #include < stdio.h>
25- #include < stdlib.h>
26- #include < string.h>
2724
2825#ifdef LF
2926#undef LF
@@ -105,7 +102,7 @@ int ATCmdParser::read(char *data, int size)
105102
106103
107104// printf/scanf handling
108- int ATCmdParser::vprintf (const char *format, std:: va_list args)
105+ int ATCmdParser::vprintf (const char *format, va_list args)
109106{
110107
111108 if (vsprintf (_buffer, format, args) < 0 ) {
@@ -121,7 +118,7 @@ int ATCmdParser::vprintf(const char *format, std::va_list args)
121118 return i;
122119}
123120
124- int ATCmdParser::vscanf (const char *format, std:: va_list args)
121+ int ATCmdParser::vscanf (const char *format, va_list args)
125122{
126123 // Since format is const, we need to copy it into our buffer to
127124 // add the line's null terminator and clobber value-matches with asterisks.
@@ -184,7 +181,7 @@ int ATCmdParser::vscanf(const char *format, std::va_list args)
184181
185182
186183// Command parsing with line handling
187- bool ATCmdParser::vsend (const char *command, std:: va_list args)
184+ bool ATCmdParser::vsend (const char *command, va_list args)
188185{
189186 // Create and send command
190187 if (vsprintf (_buffer, command, args) < 0 ) {
@@ -208,7 +205,7 @@ bool ATCmdParser::vsend(const char *command, std::va_list args)
208205 return true ;
209206}
210207
211- bool ATCmdParser::vrecv (const char *response, std:: va_list args)
208+ bool ATCmdParser::vrecv (const char *response, va_list args)
212209{
213210restart:
214211 _aborted = false ;
@@ -341,7 +338,7 @@ bool ATCmdParser::vrecv(const char *response, std::va_list args)
341338// Mapping to vararg functions
342339int ATCmdParser::printf (const char *format, ...)
343340{
344- std:: va_list args;
341+ va_list args;
345342 va_start (args, format);
346343 int res = vprintf (format, args);
347344 va_end (args);
@@ -350,7 +347,7 @@ int ATCmdParser::printf(const char *format, ...)
350347
351348int ATCmdParser::scanf (const char *format, ...)
352349{
353- std:: va_list args;
350+ va_list args;
354351 va_start (args, format);
355352 int res = vscanf (format, args);
356353 va_end (args);
@@ -359,7 +356,7 @@ int ATCmdParser::scanf(const char *format, ...)
359356
360357bool ATCmdParser::send (const char *command, ...)
361358{
362- std:: va_list args;
359+ va_list args;
363360 va_start (args, command);
364361 bool res = vsend (command, args);
365362 va_end (args);
@@ -368,7 +365,7 @@ bool ATCmdParser::send(const char *command, ...)
368365
369366bool ATCmdParser::recv (const char *response, ...)
370367{
371- std:: va_list args;
368+ va_list args;
372369 va_start (args, response);
373370 bool res = vrecv (response, args);
374371 va_end (args);
0 commit comments