From 9b5913b3143522ed53fa125b6c95e0ff1751016f Mon Sep 17 00:00:00 2001 From: akuker Date: Sun, 16 Aug 2020 20:11:03 -0500 Subject: [PATCH] Temporarily remove the device type checking. It doesn't handle the different HD types properly --- src/raspberrypi/rasctl_command.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/raspberrypi/rasctl_command.cpp b/src/raspberrypi/rasctl_command.cpp index 6a510e6..9dba9b5 100644 --- a/src/raspberrypi/rasctl_command.cpp +++ b/src/raspberrypi/rasctl_command.cpp @@ -151,16 +151,18 @@ BOOL Rasctl_Command::IsValid(FILE *fp){ } } + //!!!!! THIS DOESN'T WORK QUITE RIGHT..... // Check if the filename extension matches the device type - expected_type = DeviceTypeFromFilename(fp, file); - if(expected_type != rasctl_dev_invalid){ - if((file != nullptr) && (type != expected_type)) { - FPRT(fp, "Filename specified is for type %s. This isn't compatible with a %s device.", - dev_type_lookup[expected_type], dev_type_lookup[type]); - return FALSE; - } - } - +// if(strlen(file) > 0){ +// expected_type = DeviceTypeFromFilename(fp, file); +// if(expected_type != rasctl_dev_invalid){ +// if((file != nullptr) && (type != expected_type)) { +// FPRT(fp, "Filename specified is for type %s. This isn't compatible with a %s device.", +// dev_type_lookup[expected_type], dev_type_lookup[type]); +// return FALSE; +// } +// } +// } // Everything appears to be OK return TRUE; }