mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-26 10:57:36 -07:00
fixes handling of other caller ending call
This commit is contained in:
parent
705e279bba
commit
a2f8b396d7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user