mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-30 11:24:12 +01:00
62b723357c
Merge remote-tracking branch 'arduino/master' into ide-1.5.x Conflicts: app/src/processing/app/Base.java build/shared/revisions.txt hardware/arduino/avr/cores/arduino/malloc.c hardware/arduino/cores/arduino/avr-libc/malloc.c hardware/arduino/cores/arduino/malloc.c todo.txt
28 lines
521 B
C++
28 lines
521 B
C++
#include <GSM3ShieldV1BaseProvider.h>
|
|
#include <GSM3ShieldV1ModemCore.h>
|
|
#include <Arduino.h>
|
|
|
|
// Returns 0 if last command is still executing
|
|
// 1 if success
|
|
// >1 if error
|
|
int GSM3ShieldV1BaseProvider::ready()
|
|
{
|
|
theGSM3ShieldV1ModemCore.manageReceivedData();
|
|
|
|
return theGSM3ShieldV1ModemCore.getCommandError();
|
|
};
|
|
|
|
void GSM3ShieldV1BaseProvider::prepareAuxLocate(PROGMEM prog_char str[], char auxLocate[])
|
|
{
|
|
int i=0;
|
|
char c;
|
|
|
|
do
|
|
{
|
|
c=pgm_read_byte_near(str + i);
|
|
auxLocate[i]=c;
|
|
i++;
|
|
} while (c!=0);
|
|
}
|
|
|