Changed to work with dietpi on a NanoPI NEO

This commit is contained in:
smallsolar 2024-04-25 16:50:10 +00:00
parent 3e6817c3f7
commit ff6cf61864
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}