void SIM808ModemCore::closeCommand(int code){ if ((code != 1) && (SIM808ModemCore_t.getOngoingCommand() == MODEMCONFIG)){ SIM808ModemCore_t.setStatus(ERROR); } setCommandError(code); ongoingCommand = NONE; activeProvider = 0; commandCounter = 1; }
void GSM3ShieldV1ModemCore::closeCommand(int code) { // If we were configuring the modem, // and there's been an error // we don't know exactly where we are if((code!=1)&&(theGSM3ShieldV1ModemCore.getOngoingCommand()==MODEMCONFIG)) theGSM3ShieldV1ModemCore.setStatus(ERROR); setCommandError(code); ongoingCommand=NONE; activeProvider=0; commandCounter=1; }