mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-26 10:57:36 -07:00
fixes incoming calls using delay
This commit is contained in:
parent
8e4ea9618c
commit
93cb502f88
|
@ -168,9 +168,9 @@ 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();
|
||||||
inCall();
|
delay(500);
|
||||||
}
|
inCall();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user