mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
bug fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
@ -188,7 +188,9 @@ int checkKernelVersion() {
|
||||
#ifdef VIRTUAL
|
||||
return OK;
|
||||
#endif
|
||||
return validateKernelVersion(KERNEL_DATE_VRSN);
|
||||
char buf[255] = {0};
|
||||
strcpy(buf, KERNEL_DATE_VRSN);
|
||||
return validateKernelVersion(buf);
|
||||
}
|
||||
|
||||
int checkType() {
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -181,7 +181,9 @@ int checkKernelVersion() {
|
||||
#ifdef VIRTUAL
|
||||
return OK;
|
||||
#endif
|
||||
return validateKernelVersion(KERNEL_DATE_VRSN);
|
||||
char buf[255] = {0};
|
||||
strcpy(buf, KERNEL_DATE_VRSN);
|
||||
return validateKernelVersion(buf);
|
||||
}
|
||||
|
||||
int checkType() {
|
||||
|
@ -81,6 +81,7 @@ int getTimeFromString(char *buf, time_t *result) {
|
||||
}
|
||||
buf[cestPos] = '\0';
|
||||
}
|
||||
LOG(logDEBUG, ("buf after removing CEST %s\n", buf));
|
||||
|
||||
// convert to time structure
|
||||
struct tm t;
|
||||
|
@ -32,9 +32,7 @@ void defineGPIOpins() {
|
||||
return;
|
||||
#endif
|
||||
if (latestKernelVerified == -1) {
|
||||
char version[255]={0};
|
||||
strcpy(version, KERNEL_DATE_VRSN_3GPIO);
|
||||
if (FAIL == validateKernelVersion(version, sizeof(version))) {
|
||||
if (FAIL == validateKernelVersion(KERNEL_DATE_VRSN_3GPIO)) {
|
||||
latestKernelVerified = 0;
|
||||
LOG(logWARNING,
|
||||
("Kernel too old to use gpio 3 pins. Not the end "
|
||||
|
Reference in New Issue
Block a user