diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-11-16 03:11:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-11-16 03:11:09 +0000 |
commit | 45fb09db51a10d04cd796d4ec7907cc349ad240d (patch) | |
tree | e2f891446f52601b4a56457646ce4361031c52fe /package/switch | |
parent | 77a96c54371bb0f47d2e0d187b53b1b7dc63e885 (diff) | |
download | upstream-45fb09db51a10d04cd796d4ec7907cc349ad240d.tar.gz upstream-45fb09db51a10d04cd796d4ec7907cc349ad240d.tar.bz2 upstream-45fb09db51a10d04cd796d4ec7907cc349ad240d.zip |
fix adm switch misdetection, which led to bogus button events that caused the system to shut down
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9555 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch')
-rw-r--r-- | package/switch/src/switch-adm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/package/switch/src/switch-adm.c b/package/switch/src/switch-adm.c index 0fb21ffaaf..8d5de04b48 100644 --- a/package/switch/src/switch-adm.c +++ b/package/switch/src/switch-adm.c @@ -500,13 +500,13 @@ static int detect_adm(void) int boardflags = atoi(nvram_get("boardflags")); int boardnum = atoi(nvram_get("boardnum")); - if (boardnum == 44) { /* Trendware TEW-411BRP+ */ - ret = 1; + if ((boardnum == 44) && (boardflags == 0x0388)) { /* Trendware TEW-411BRP+ */ + ret = 1; - eecs = get_gpiopin("adm_eecs", 2); - eesk = get_gpiopin("adm_eesk", 3); - eedi = get_gpiopin("adm_eedi", 4); - eerc = get_gpiopin("adm_rc", 5); + eecs = get_gpiopin("adm_eecs", 2); + eesk = get_gpiopin("adm_eesk", 3); + eedi = get_gpiopin("adm_eedi", 4); + eerc = get_gpiopin("adm_rc", 5); } else if ((boardflags & 0x80) || force) { ret = 1; |