Browse Source

#15

pull/188/head
mstroh76 9 months ago
parent
commit
f01ff41b3a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      wiringPi/wiringPi.c

+ 1
- 2
wiringPi/wiringPi.c 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 ; } 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" " hardware then it most certianly won't work\n"
" Try running with sudo?\n", strerror (errno)) ; " Try running with sudo?\n", strerror (errno)) ;
} }
}


if (PI_MODEL_5 == model) { if (PI_MODEL_5 == model) {
return wiringPiFailure (WPI_ALMOST, "wiringPiSetup: Raspberry Pi 5 not supported.\n" return wiringPiFailure (WPI_ALMOST, "wiringPiSetup: Raspberry Pi 5 not supported.\n"


Loading…
Cancel
Save