mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Fix boolean operation in SCSI sense.
This commit is contained in:
@@ -67,7 +67,7 @@ int32_t linux_send_scsi_command(int device_fd,
|
||||
|
||||
ret = ioctl(device_fd, SG_IO, &hdr);
|
||||
|
||||
*sense |= (hdr.info & SG_INFO_OK_MASK) != SG_INFO_OK;
|
||||
*sense = (hdr.info & SG_INFO_OK_MASK) != SG_INFO_OK;
|
||||
// TODO: Manual timing if duration is 0
|
||||
*duration = hdr.duration;
|
||||
*sense_len = hdr.sb_len_wr;
|
||||
|
||||
Reference in New Issue
Block a user