Skip to content

Commit

Permalink
Variable style updated
Browse files Browse the repository at this point in the history
  • Loading branch information
morio committed Feb 5, 2024
1 parent a8efe3f commit 6a1033a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/SCSI2SD/src/firmware/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,14 @@ static void process_Command()
// on receiving the unit attention response on boot, thus
// triggering another unit attention condition.
else if (scsiDev.target->unitAttention &&
scsiDev.target->unitAttention_stop == 0 &&
scsiDev.target->unitAttentionStop == 0 &&
((scsiDev.boardCfg.flags & S2S_CFG_ENABLE_UNIT_ATTENTION) ||
(scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_EWSD)))
{
/* EWSD requires unitAttention to be sent only once. */
if (scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_EWSD)
{
scsiDev.target->unitAttention_stop = 1;
scsiDev.target->unitAttentionStop = 1;
}
scsiDev.target->sense.code = UNIT_ATTENTION;
scsiDev.target->sense.asc = scsiDev.target->unitAttention;
Expand Down
2 changes: 1 addition & 1 deletion lib/SCSI2SD/src/firmware/scsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ typedef struct
ScsiSense sense;

uint16_t unitAttention; // Set to the sense qualifier key to be returned.
uint8_t unitAttention_stop; // Indicates if unit attention has to be stopped.
uint8_t unitAttentionStop; // Indicates if unit attention has to be stopped.

// Only let the reserved initiator talk to us.
// A 3rd party may be sending the RESERVE/RELEASE commands
Expand Down

0 comments on commit 6a1033a

Please sign in to comment.