mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -07:00
fixes sleeping. removes delay during sleep. reduces RSSI threshold
This commit is contained in:
parent
09075932a7
commit
21a352ed43
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user