Add all phase bits to a control register for atomic phase changes.
[SCSI2SD-V6.git] / software / SCSI2SD / src / sd.c
index fb290f1..fb07bb9 100755 (executable)
@@ -183,11 +183,7 @@ static void doReadSector(uint32_t numBytes)
                return;\r
        }\r
 \r
-       // Don't do a bus settle delay if we're already in the correct phase.\r
-       if (transfer.currentBlock == 0)\r
-       {\r
-               scsiEnterPhase(DATA_IN);\r
-       }\r
+       scsiEnterPhase(DATA_IN);\r
 \r
        // Quickly seed the FIFO\r
        prep = 4;\r
@@ -383,11 +379,7 @@ static int doWriteSector(uint32_t numBytes)
        int result, maxWait;\r
        uint8 dataToken;\r
 \r
-       // Don't do a bus settle delay if we're already in the correct phase.\r
-       if (transfer.currentBlock == 0)\r
-       {\r
-               scsiEnterPhase(DATA_OUT);\r
-       }\r
+       scsiEnterPhase(DATA_OUT);\r
        \r
        sdSpiByte(0xFC); // MULTIPLE byte start token\r
        \r