makes DTMF tones be played for all phone number digits rather than just first digit

This commit is contained in:
Brendan Haines 2016-11-01 21:58:58 -06:00
parent a2f8b396d7
commit f83a60802a

View File

@ -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