Exemplo n.º 1
0
void SIM808ModemCore::closeCommand(int code){
	if ((code != 1) && (SIM808ModemCore_t.getOngoingCommand() == MODEMCONFIG)){
		SIM808ModemCore_t.setStatus(ERROR);
	}
	
	setCommandError(code);
	ongoingCommand = NONE;
	activeProvider = 0;
	commandCounter = 1;
}
Exemplo n.º 2
0
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;
}