From 4bee242c21c7cec2b95d7c888b358d34a0788b34 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Tue, 1 Nov 2016 22:00:44 -0600 Subject: [PATCH] changes playing to DTMF tones to be with each keypress rather than when call is placed --- Hohm_Phone.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Hohm_Phone.ino b/Hohm_Phone.ino index fd8b1d4..92fa2d2 100644 --- a/Hohm_Phone.ino +++ b/Hohm_Phone.ino @@ -107,9 +107,6 @@ void beginCall() { Serial.println("Starting Call"); #endif 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"); @@ -180,6 +177,7 @@ void loop() { if ( key != NO_KEY ) { phoneNumber[ phoneNumberLength ] = key; phoneNumberLength = phoneNumberLength + 1; + fona.playDTMF( key ); // Play DTMF tone lastActiveTime = millis(); #ifdef USB_DEBUG int i;