mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +02:00
specific kernel version name
This commit is contained in:
parent
45b3514118
commit
5188e600a2
@ -25,17 +25,18 @@ int gpioDefined = 0;
|
|||||||
extern int executeCommand(char *command, char *result, enum TLogLevel level);
|
extern int executeCommand(char *command, char *result, enum TLogLevel level);
|
||||||
|
|
||||||
int latestKernelVerified = -1;
|
int latestKernelVerified = -1;
|
||||||
#define KERNEL_DATE_VRSN "Fri Oct 29 13:58:38 CEST 2021"
|
#define KERNEL_DATE_VRSN_3GPIO "Fri Oct 29 13:58:38 CEST 2021"
|
||||||
|
|
||||||
void defineGPIOpins() {
|
void defineGPIOpins() {
|
||||||
#ifdef VIRTUAL
|
#ifdef VIRTUAL
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
if (latestKernelVerified == -1) {
|
if (latestKernelVerified == -1) {
|
||||||
if (FAIL == validateKernelVersion(KERNEL_DATE_VRSN)) {
|
if (FAIL == validateKernelVersion(KERNEL_DATE_VRSN_3GPIO)) {
|
||||||
latestKernelVerified = 0;
|
latestKernelVerified = 0;
|
||||||
LOG(logWARNING, ("Kernel too old to use gpio 3 pins. Not the end "
|
LOG(logWARNING,
|
||||||
"of the world. Continuing with current kernel\n"));
|
("Kernel too old to use gpio 3 pins. Not the end "
|
||||||
|
"of the world. Continuing with current kernel.\n"));
|
||||||
} else {
|
} else {
|
||||||
latestKernelVerified = 1;
|
latestKernelVerified = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user