mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user