fixes incoming calls using delay

This commit is contained in:
Brendan Haines 2016-11-01 22:33:13 -06:00
parent 8e4ea9618c
commit 93cb502f88

View File

@ -168,11 +168,11 @@ void loop() {
if ( !digitalRead(GSM_RING) ) { if ( !digitalRead(GSM_RING) ) {
while ( digitalRead(BUT_ANS) & !digitalRead(GSM_RING) ) delay(10); // Wait for answer button or end ring/call while ( digitalRead(BUT_ANS) & !digitalRead(GSM_RING) ) delay(10); // Wait for answer button or end ring/call
if ( !digitalRead(BUT_ANS) ) { if ( !digitalRead(BUT_ANS) ) {
if ( fona.pickUp() ) { fona.pickUp();
delay(500);
inCall(); inCall();
} }
} }
}
if ( startDialtone ) { if ( startDialtone ) {
resumeDialtone(); resumeDialtone();