summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2015-12-26 22:20:23 +0100
committerFlorian Baumann <derflob@derflob.de>2015-12-26 22:20:23 +0100
commitda66295175b29afebde75ab847e07f1d7db2c404 (patch)
tree77522a08ae95eaf987932c7ed5ac35f0601ebea3
parent7a37c61b55f40c906c60d711e786462b47fb256a (diff)
downloadmFeTAp-da66295175b29afebde75ab847e07f1d7db2c404.tar.gz
mFeTAp-da66295175b29afebde75ab847e07f1d7db2c404.tar.bz2
force sms reading with: dial 767
-rw-r--r--mFeTAp.ino5
1 files changed, 5 insertions, 0 deletions
diff --git a/mFeTAp.ino b/mFeTAp.ino
index b8ab082..02671ca 100644
--- a/mFeTAp.ino
+++ b/mFeTAp.ino
@@ -267,6 +267,7 @@ void process_input_number() {
Serial.println("DIALING: number dialed");
adv_state = DIALING;
char radio[4] = "723";
+ char sms[4] = "767";
if (strncmp(number, radio, 3) == 0) {
if (start_radio(number, &number_len)) {
Serial.println("FM: radio");
@@ -275,6 +276,10 @@ void process_input_number() {
Serial.println("IDLE: Radio tuning failed");
adv_state = IDLE;
}
+ } else if (number_len == 3 && strncmp(number, sms, 3) == 0) {
+ Serial.println("READING_SMS: Force reading");
+ adv_state = READING_SMS;
+ sms_available = millis();
} else {
if (call_current_number(number, &number_len)) {
Serial.println("SPEAKING: Calling");