From 21a352ed43351d1a4139a6b7655819faab904fb3 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Fri, 2 Dec 2016 22:06:48 -0700 Subject: [PATCH] fixes sleeping. removes delay during sleep. reduces RSSI threshold --- Hohm_Phone.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Hohm_Phone.ino b/Hohm_Phone.ino index 2b3c1a8..6b20680 100644 --- a/Hohm_Phone.ino +++ b/Hohm_Phone.ino @@ -22,7 +22,7 @@ #define SLEEP_TIMEOUT 120000 // RSSI value below which No Service LED will light -#define RSSI_THRESHOLD 3 +#define RSSI_THRESHOLD 1 // Keypad pinout byte rowPins[4] = {5, 10, 9, 7}; @@ -196,7 +196,6 @@ void loop() { } } else { // sleeping - delay(100); if ( !digitalRead( BUT_ANS ) || !digitalRead( BUT_END ) || !digitalRead( GSM_RING ) ) { lastActiveTime = millis(); awake = true;