Skip to content

Commit

Permalink
Minor fix to page 0x31
Browse files Browse the repository at this point in the history
  • Loading branch information
dingusdev committed Nov 25, 2024
1 parent c8e2a4d commit f4b5ac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devices/storage/cdromdrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ uint32_t CdromDrive::mode_sense_ex(bool is_sense_6, uint8_t* cmd_ptr, uint8_t* d
resp_ptr[11] = 'A';
resp_ptr[12] = 'p';
resp_ptr[13] = 'p';
data_ptr[1] += 2; // adjust overall length
break;
default:
LOG_F(ERROR, "ATAPI CD-ROM: Invalid Page Code 0x%x", page_code);
this->set_error(ScsiSense::ILLEGAL_REQ, ScsiError::INVALID_CDB);
Expand Down

0 comments on commit f4b5ac2

Please sign in to comment.