Skip to content

Commit

Permalink
toolbox: Workaround for bug in lun handling and toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed May 7, 2024
1 parent c2be149 commit 9a72b53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ extern "C" {
extern const char *g_platform_name;
#define PLATFORM_NAME "BlueSCSI"
#define PLATFORM_REVISION "2.0"
#define PLATFORM_INQUIRY PLATFORM_NAME " v" BLUESCSI_FW_VERSION
#define PLATFORM_TOOLBOX_API 0
#define PLATFORM_INQUIRY PLATFORM_NAME " v" BLUESCSI_FW_VERSION PLATFORM_TOOLBOX_API
#define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_10
#define PLATFORM_OPTIMAL_MIN_SD_WRITE_SIZE 32768
#define PLATFORM_OPTIMAL_MAX_SD_WRITE_SIZE 65536
Expand Down
2 changes: 1 addition & 1 deletion lib/SCSI2SD/src/firmware/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ static void process_Command()

enter_Status(CHECK_CONDITION);
}
else if (scsiDev.lun)
else if (scsiDev.lun && (command < 0xD0)) // Temp workaround for Toolbox API v0
{
scsiDev.target->sense.code = ILLEGAL_REQUEST;
scsiDev.target->sense.asc = LOGICAL_UNIT_NOT_SUPPORTED;
Expand Down

0 comments on commit 9a72b53

Please sign in to comment.