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-a3cf2f4a3e73master
parent
77a96c5437
commit
45fb09db51
|
@ -738,7 +738,7 @@ static struct platform_t __init *platform_detect(void)
|
||||||
return &platforms[WR850GV2V3];
|
return &platforms[WR850GV2V3];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(boardnum, "44")) { /* Trendware TEW-411BRP+ */
|
if (!strcmp(boardnum, "44") && !strcmp(getvar("boardflags"),"0x0388")) { /* Trendware TEW-411BRP+ */
|
||||||
return &platforms[TEW411BRPP];
|
return &platforms[TEW411BRPP];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -500,7 +500,7 @@ static int detect_adm(void)
|
||||||
int boardflags = atoi(nvram_get("boardflags"));
|
int boardflags = atoi(nvram_get("boardflags"));
|
||||||
int boardnum = atoi(nvram_get("boardnum"));
|
int boardnum = atoi(nvram_get("boardnum"));
|
||||||
|
|
||||||
if (boardnum == 44) { /* Trendware TEW-411BRP+ */
|
if ((boardnum == 44) && (boardflags == 0x0388)) { /* Trendware TEW-411BRP+ */
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
eecs = get_gpiopin("adm_eecs", 2);
|
eecs = get_gpiopin("adm_eecs", 2);
|
||||||
|
|
Loading…
Reference in New Issue