mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 08:17:13 +02:00
use s_ischr.. not s_isblk
This commit is contained in:
@ -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. "
|
||||
|
Reference in New Issue
Block a user