mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 10:27:03 -07:00
phone seems to work. places call to correct number. receiving calls untested
This commit is contained in:
parent
035f9af99a
commit
705e279bba
|
@ -169,6 +169,7 @@ void loop() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( startDialtone ) {
|
||||
//fona.sendCheckReply( F("AT+STTONE=1,20,5000" ), F("OK") ); // Start tone
|
||||
startDialtone = false;
|
||||
|
@ -186,7 +187,6 @@ void loop() {
|
|||
Serial.print(phoneNumber[i]);
|
||||
Serial.print(", ");
|
||||
}
|
||||
Serial.println();
|
||||
Serial.println(phoneNumberLength);
|
||||
#endif
|
||||
// Check for complete phone number (including +1 country code)
|
||||
|
@ -195,6 +195,17 @@ void loop() {
|
|||
}
|
||||
}
|
||||
|
||||
// Clear stored phone number on press of end button
|
||||
if ( !digitalRead(BUT_END) ) {
|
||||
for ( int j = 0; j < phoneNumberLength; j++) {
|
||||
phoneNumber[j] = 0;
|
||||
}
|
||||
phoneNumberLength = 0;
|
||||
#ifdef USB_DEBUG
|
||||
Serial.println( phoneNumberLength );
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef SLEEP
|
||||
// Autoshutdown if inactive for extended period
|
||||
// Typecast to long avoids "rollover" issues
|
||||
|
|
Loading…
Reference in New Issue
Block a user