From f01ff41b3aef4ed737e27fa2826b7b5754678c95 Mon Sep 17 00:00:00 2001 From: mstroh76 Date: Sat, 27 Jan 2024 09:09:18 +0100 Subject: [PATCH] #15 --- wiringPi/wiringPi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 33743ab..3ca2c33 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -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"