mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-26 10:57:36 -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
|
#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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user