From b2c491368088b8d6194c0e98b4f2a59f5d4e3219 Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Sun, 13 Dec 2015 15:07:46 -0600 Subject: [PATCH] default any error conditions to -95 --- files/www/cgi-bin/signal.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/www/cgi-bin/signal.json b/files/www/cgi-bin/signal.json index 41e5f18e..fd3081e1 100755 --- a/files/www/cgi-bin/signal.json +++ b/files/www/cgi-bin/signal.json @@ -120,7 +120,7 @@ sub get_realtime_signal() if (-d "/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/$var") { chomp($s = `cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/$var/last_signal`); } else { - return ("-2","-2"); + return ("-95","-95"); } ($junk, $n) = get_wifi_signal(get_interface("wifi")); return ($s, $n);