Fix getting type for SCSI magneto-optical devices in Linux.

This commit is contained in:
2020-10-17 02:34:21 +01:00
parent 5d9f1501ee
commit 57425ecba4
2 changed files with 5 additions and 7 deletions

View File

@@ -133,8 +133,11 @@ int32_t GetDeviceType(void* device_ctx)
if(tmp_string)
{
if(strncmp(tmp_string, "cd", 2) == 0 || strncmp(tmp_string, "disk", 4) == 0)
{ device_type = AARUREMOTE_DEVICE_TYPE_SCSI; }
if(strncmp(tmp_string, "cd", 2) == 0 || strncmp(tmp_string, "disk", 4) == 0 ||
strncmp(tmp_string, "optical", 7) == 0)
{
device_type = AARUREMOTE_DEVICE_TYPE_SCSI;
}
free((void*)tmp_string);
}