Skip to content

Commit

Permalink
Update Sata.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte authored Dec 31, 2017
1 parent 458e465 commit e562c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Cosmos.HAL2/BlockDevice/Ports/Sata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void SendSATACommand(ATACommands aCommand)

int xSpin = 0;

while ((mPortReg.TFD & 0x88) != 0) && xSpin < 1000000) xSpin++;
while (((mPortReg.TFD & 0x88) != 0) && xSpin < 1000000) xSpin++;

if (xSpin == 1000000)
{
Expand Down Expand Up @@ -185,7 +185,7 @@ public void SendSATA28Command(ATACommands aCommand, uint aStart, uint aCount)

int xSpin = 0;

while ((mPortReg.TFD & 0x88) != 0) && xSpin < 1000000) xSpin++;
while (((mPortReg.TFD & 0x88) != 0) && xSpin < 1000000) xSpin++;

if (xSpin == 1000000)
{
Expand Down Expand Up @@ -259,7 +259,7 @@ public void SendSATA48Command(ATACommands aCommand, ulong aStart, uint aCount)

int xSpin = 0;

while ((mPortReg.TFD & 0x88) != 0) && xSpin < 1000000) xSpin++;
while (((mPortReg.TFD & 0x88) != 0) && xSpin < 1000000) xSpin++;

if (xSpin == 1000000)
{
Expand Down

0 comments on commit e562c7e

Please sign in to comment.