Other callback functions do it, it also makes sense to do it here. Signed-off-by: Jernej Jakob <jernej.jakob@gmail.com>
@@ -22,7 +22,10 @@
// Callback after the DATA OUT phase is complete.
static void doAssignDiskParameters(void)
{
- scsiDev.phase = STATUS;
+ if (scsiDev.status == GOOD)
+ {
+ scsiDev.phase = STATUS;
+ }
}
// XEBEC specific commands