fixes handling of other caller ending call

This commit is contained in:
Brendan Haines 2016-11-01 21:56:32 -06:00
parent 705e279bba
commit a2f8b396d7

View File

@ -90,14 +90,14 @@ void goToSleep() {
void inCall() { void inCall() {
while (1) { while (1) {
if ( !digitalRead(BUT_END) ) { // End button pressed if ( !digitalRead(BUT_END) || fona.getCallStatus() < 3 ) { // End button pressed
if ( fona.hangUp() ) { fona.hangUp();
#ifdef USB_DEBUG #ifdef USB_DEBUG
Serial.println("Hanging up"); Serial.println("Hanging up");
#endif #endif
break; break;
} }
}
// numpad stuff // numpad stuff
} }
} }
@ -171,7 +171,7 @@ void loop() {
} }
if ( startDialtone ) { if ( startDialtone ) {
//fona.sendCheckReply( F("AT+STTONE=1,20,5000" ), F("OK") ); // Start tone fona.sendCheckReply( F("AT+STTONE=1,20,500" ), F("OK") ); // Start tone
startDialtone = false; startDialtone = false;
} }