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