From 881e4fd599842f6d12f0b7a7469245b5618a2b7d Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Tue, 1 Nov 2016 22:06:27 -0600 Subject: [PATCH] makes clearing of phone number happen regardless of who initiated the call --- Hohm_Phone.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Hohm_Phone.ino b/Hohm_Phone.ino index 92fa2d2..2bd6567 100644 --- a/Hohm_Phone.ino +++ b/Hohm_Phone.ino @@ -100,6 +100,10 @@ void inCall() { // numpad stuff } + for ( int j = 0; j < phoneNumberLength; j++) { + phoneNumber[j] = 0; + } + phoneNumberLength = 0; } void beginCall() { @@ -113,10 +117,6 @@ void beginCall() { #endif inCall(); } - for ( int j = 0; j < phoneNumberLength; j++) { - phoneNumber[j] = 0; - } - phoneNumberLength = 0; #ifdef USB_DEBUG Serial.println("Call ended"); #endif