mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-05 20:30:03 +02:00
use s_ischr.. not s_isblk
This commit is contained in:
parent
2453390cc3
commit
6470277e43
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -486,8 +486,8 @@ int checkNormalFile(char *mess, enum PROGRAM_INDEX index, int forceDeleteNormalF
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
}
|
||||
// zero = normal file (not block special file)
|
||||
if (S_ISBLK(buf.st_mode)) {
|
||||
// zero = normal file (not char special drive file)
|
||||
if (!S_ISCHR(buf.st_mode)) {
|
||||
// kernel memory is not permanent
|
||||
if (index != PROGRAM_FPGA) {
|
||||
sprintf(mess,
|
||||
|
@ -158,8 +158,8 @@ int openFileForFlash(char *mess, FILE **flashfd) {
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
}
|
||||
// zero = normal file (not block special file)
|
||||
if (S_ISBLK(buf.st_mode)) {
|
||||
// zero = normal file (not char drive special file)
|
||||
if (!S_ISCHR(buf.st_mode)) {
|
||||
// memory is not permanent
|
||||
sprintf(mess,
|
||||
"Could not %s. The flash drive found is a normal file. "
|
||||
|
@ -7,9 +7,9 @@
|
||||
#define APIGUI 0x211124
|
||||
|
||||
#define APIEIGER 0x220324
|
||||
#define APICTB 0x220324
|
||||
#define APIGOTTHARD 0x220324
|
||||
#define APIGOTTHARD2 0x220324
|
||||
#define APIJUNGFRAU 0x220324
|
||||
#define APIMYTHEN3 0x220324
|
||||
#define APIMOENCH 0x220324
|
||||
#define APICTB 0x220328
|
||||
#define APIGOTTHARD 0x220328
|
||||
#define APIGOTTHARD2 0x220328
|
||||
#define APIMYTHEN3 0x220328
|
||||
#define APIMOENCH 0x220328
|
||||
#define APIJUNGFRAU 0x220328
|
||||
|
Loading…
x
Reference in New Issue
Block a user