mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -07:00
makes DTMF tones be played for all phone number digits rather than just first digit
This commit is contained in:
parent
a2f8b396d7
commit
f83a60802a
|
@ -109,17 +109,17 @@ void beginCall() {
|
|||
fona.sendCheckReply( F("AT+STTONE=0"), F("OK") ); // End dialtone
|
||||
for (int i = 0; i < phoneNumberLength; i++) {
|
||||
fona.playDTMF( phoneNumber[i] ); // Play DTMF tones
|
||||
if ( fona.callPhone( phoneNumber ) ) {
|
||||
#ifdef USB_DEBUG
|
||||
Serial.println("Call Started");
|
||||
#endif
|
||||
inCall();
|
||||
}
|
||||
for ( int j = 0; j < phoneNumberLength; j++) {
|
||||
phoneNumber[j] = 0;
|
||||
}
|
||||
phoneNumberLength = 0;
|
||||
}
|
||||
if ( fona.callPhone( phoneNumber ) ) {
|
||||
#ifdef USB_DEBUG
|
||||
Serial.println("Call Started");
|
||||
#endif
|
||||
inCall();
|
||||
}
|
||||
for ( int j = 0; j < phoneNumberLength; j++) {
|
||||
phoneNumber[j] = 0;
|
||||
}
|
||||
phoneNumberLength = 0;
|
||||
#ifdef USB_DEBUG
|
||||
Serial.println("Call ended");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user