mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -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() {
|
||||
while (1) {
|
||||
if ( !digitalRead(BUT_END) ) { // End button pressed
|
||||
if ( fona.hangUp() ) {
|
||||
if ( !digitalRead(BUT_END) || fona.getCallStatus() < 3 ) { // End button pressed
|
||||
fona.hangUp();
|
||||
#ifdef USB_DEBUG
|
||||
Serial.println("Hanging up");
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// numpad stuff
|
||||
}
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ void loop() {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user