mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 05:50:14 +01:00
addd kernel version
This commit is contained in:
Binary file not shown.
@@ -101,7 +101,7 @@ void basictests() {
|
||||
}
|
||||
// does check only if flag is 0 (by default), set by command line
|
||||
if ((!debugflag) && (!updateFlag) &&
|
||||
((checkKernelVersion() == FAIL) || (checkType() == FAIL) ||
|
||||
((validateKernelVersion(KERNEL_DATE_VRSN) == FAIL) || (checkType() == FAIL) ||
|
||||
(testFpga() == FAIL) || (testBus() == FAIL))) {
|
||||
sprintf(initErrorMessage,
|
||||
"Could not pass basic tests of FPGA and bus. Dangerous to "
|
||||
@@ -184,15 +184,6 @@ void basictests() {
|
||||
#endif
|
||||
}
|
||||
|
||||
int checkKernelVersion() {
|
||||
#ifdef VIRTUAL
|
||||
return OK;
|
||||
#endif
|
||||
char buf[255] = {0};
|
||||
strcpy(buf, KERNEL_DATE_VRSN);
|
||||
return validateKernelVersion(buf);
|
||||
}
|
||||
|
||||
int checkType() {
|
||||
#ifdef VIRTUAL
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user