diff --git a/wiringPi/boardtype_friendlyelec.c b/wiringPi/boardtype_friendlyelec.c index beaf50b..069b2ec 100644 --- a/wiringPi/boardtype_friendlyelec.c +++ b/wiringPi/boardtype_friendlyelec.c @@ -157,8 +157,8 @@ static int getAllwinnerBoardID(char* boardId, int boardIdMaxLen ) FILE *f; int ret = -1; - if (!(f = fopen("/sys/class/sunxi_info/sys_info", "r"))) { - LOGE("open /sys/class/sunxi_info/sys_info failed."); + if (!(f = fopen("/etc/sys_info", "r"))) { + LOGE("open /etc/sys_info failed."); return -1; }