mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-26 10:57:36 -07:00
rssi led fix
This commit is contained in:
parent
fd7491d8aa
commit
e6597a726b
|
@ -22,7 +22,7 @@
|
||||||
#define SLEEP_TIMEOUT 120000
|
#define SLEEP_TIMEOUT 120000
|
||||||
|
|
||||||
// RSSI value below which No Signal LED will light
|
// RSSI value below which No Signal LED will light
|
||||||
#define RSSI_THRESHOLD
|
#define RSSI_THRESHOLD 5
|
||||||
|
|
||||||
// Keypad pinout
|
// Keypad pinout
|
||||||
byte rowPins[4] = {5, 10, 9, 7};
|
byte rowPins[4] = {5, 10, 9, 7};
|
||||||
|
@ -180,10 +180,10 @@ void loop() {
|
||||||
|
|
||||||
uint8_t rssi;
|
uint8_t rssi;
|
||||||
rssi = fona.getRSSI();
|
rssi = fona.getRSSI();
|
||||||
if( rssi < RSSI_THRESHOLD ) {
|
if( rssi < RSSI_THRESHOLD | rssi == 99 ) {
|
||||||
digitalWrite( LED_NO_SIGNAL, HIGH );
|
digitalWrite( LED_NO_SERVICE, HIGH );
|
||||||
} else {
|
} else {
|
||||||
digitalWrite( LED_NO_SIGNAL, LOW );
|
digitalWrite( LED_NO_SERVICE, LOW );
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user