mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-26 10:57:36 -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,6 +109,7 @@ void beginCall() {
|
||||||
fona.sendCheckReply( F("AT+STTONE=0"), F("OK") ); // End dialtone
|
fona.sendCheckReply( F("AT+STTONE=0"), F("OK") ); // End dialtone
|
||||||
for (int i = 0; i < phoneNumberLength; i++) {
|
for (int i = 0; i < phoneNumberLength; i++) {
|
||||||
fona.playDTMF( phoneNumber[i] ); // Play DTMF tones
|
fona.playDTMF( phoneNumber[i] ); // Play DTMF tones
|
||||||
|
}
|
||||||
if ( fona.callPhone( phoneNumber ) ) {
|
if ( fona.callPhone( phoneNumber ) ) {
|
||||||
#ifdef USB_DEBUG
|
#ifdef USB_DEBUG
|
||||||
Serial.println("Call Started");
|
Serial.println("Call Started");
|
||||||
|
@ -119,7 +120,6 @@ void beginCall() {
|
||||||
phoneNumber[j] = 0;
|
phoneNumber[j] = 0;
|
||||||
}
|
}
|
||||||
phoneNumberLength = 0;
|
phoneNumberLength = 0;
|
||||||
}
|
|
||||||
#ifdef USB_DEBUG
|
#ifdef USB_DEBUG
|
||||||
Serial.println("Call ended");
|
Serial.println("Call ended");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user