rssi led fix

This commit is contained in:
Brendan Haines 2016-12-02 20:10:42 -07:00
parent fd7491d8aa
commit e6597a726b

View File

@ -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 {