From 4266a5c388b7f5ad6ba25df7f2581c56b73b2e56 Mon Sep 17 00:00:00 2001 From: Andrew Kroll Date: Sun, 8 Nov 2015 22:58:28 -0500 Subject: [PATCH] Fix typo that that has been here forever, wrong opcode in ModeSense6 --- masstorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masstorage.cpp b/masstorage.cpp index 9299f71a..8e8313a2 100644 --- a/masstorage.cpp +++ b/masstorage.cpp @@ -754,7 +754,7 @@ uint8_t BulkOnly::ModeSense6(uint8_t lun, uint8_t pc, uint8_t page, uint8_t subp Notify(PSTR("\r\rModeSense\r\n"), 0x80); Notify(PSTR("------------\r\n"), 0x80); - CDB6_t cdb = CDB6_t(SCSI_CMD_TEST_UNIT_READY, lun, (uint32_t)((((pc << 6) | page) << 8) | subpage), len, 0); + CDB6_t cdb = CDB6_t(SCSI_CMD_MODE_SENSE_6, lun, (uint32_t)((((pc << 6) | page) << 8) | subpage), len, 0); return SCSITransaction6(&cdb, len, pbuf, (uint8_t)MASS_CMD_DIR_IN); }