This commit is contained in:
mstroh76
2024-01-27 09:09:18 +01:00
parent 6d5108edf2
commit f01ff41b3a

View File

@@ -1104,7 +1104,7 @@ void piBoardId (int *model, int *rev, int *mem, int *maker, int *warranty)
else { *model = 0 ; *rev = 0 ; *mem = 0 ; *maker = 0 ; }
}
RaspberryPiModel = model;
RaspberryPiModel = *model;
}
@@ -2361,7 +2361,6 @@ int wiringPiSetup (void)
" hardware then it most certianly won't work\n"
" Try running with sudo?\n", strerror (errno)) ;
}
}
if (PI_MODEL_5 == model) {
return wiringPiFailure (WPI_ALMOST, "wiringPiSetup: Raspberry Pi 5 not supported.\n"