fixes sleeping. removes delay during sleep. reduces RSSI threshold

This commit is contained in:
Brendan Haines 2016-12-02 22:06:48 -07:00
parent 09075932a7
commit 21a352ed43

View File

@ -22,7 +22,7 @@
#define SLEEP_TIMEOUT 120000 #define SLEEP_TIMEOUT 120000
// RSSI value below which No Service LED will light // RSSI value below which No Service LED will light
#define RSSI_THRESHOLD 3 #define RSSI_THRESHOLD 1
// Keypad pinout // Keypad pinout
byte rowPins[4] = {5, 10, 9, 7}; byte rowPins[4] = {5, 10, 9, 7};
@ -196,7 +196,6 @@ void loop() {
} }
} else { } else {
// sleeping // sleeping
delay(100);
if ( !digitalRead( BUT_ANS ) || !digitalRead( BUT_END ) || !digitalRead( GSM_RING ) ) { if ( !digitalRead( BUT_ANS ) || !digitalRead( BUT_END ) || !digitalRead( GSM_RING ) ) {
lastActiveTime = millis(); lastActiveTime = millis();
awake = true; awake = true;