From 82bad7fec65bf8c374789a07c7967b100f7b32b8 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 21 Mar 2022 15:46:34 +0100 Subject: [PATCH] special file check fix --- slsDetectorServers/slsDetectorServer/src/programViaBlackfin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorServers/slsDetectorServer/src/programViaBlackfin.c b/slsDetectorServers/slsDetectorServer/src/programViaBlackfin.c index 339e3c2a2..c8ae014f7 100644 --- a/slsDetectorServers/slsDetectorServer/src/programViaBlackfin.c +++ b/slsDetectorServers/slsDetectorServer/src/programViaBlackfin.c @@ -461,7 +461,7 @@ int openFileForFlash(char *mess, FILE **flashfd, FILE **srcfd) { return FAIL; } // non zero = block special file - if (!S_ISBLK(buf.st_mode)) { + if (S_ISBLK(buf.st_mode)) { sprintf(mess, "Could not %s. The flash drive found is a normal file. To " "delete this file, create the flash drive and proceed with "