From ff6cf61864a51f5d9391000d3d711f66bd6d056a Mon Sep 17 00:00:00 2001 From: smallsolar Date: Thu, 25 Apr 2024 16:50:10 +0000 Subject: [PATCH] Changed to work with dietpi on a NanoPI NEO --- wiringPi/boardtype_friendlyelec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }