Rename method.

parent 7a1d9e58
......@@ -121,7 +121,7 @@ SimpleGSM::startCall (const String phoneNumber)
bool
SimpleGSM::callIsDialing()
{
this->sendCallStatusCommand();
this->queryForCallStatus();
return this->responseIsReceived("+CLCC: 1,0,2,0,0", 500);
}
......@@ -129,7 +129,7 @@ SimpleGSM::callIsDialing()
bool
SimpleGSM::callIsRinging()
{
this->sendCallStatusCommand();
this->queryForCallStatus();
return this->responseIsReceived("+CLCC: 1,0,3,0,0", 500);
}
......@@ -175,7 +175,7 @@ SimpleGSM::missedCall (const String phoneNumber, const unsigned long ringingDura
}
void
SimpleGSM::sendCallStatusCommand()
SimpleGSM::queryForCallStatus()
{
this->print(F("AT+CLCC\r"));
}
......
......@@ -39,7 +39,7 @@ class SimpleGSM : public SoftwareSerial
bool setSMSMode (const byte mode);
void sendCallStatusCommand ();
void queryForCallStatus ();
bool responseIsReceived (char * const pattern, const long timeOut);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment