Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Mar 14, 2024
1 parent e17e0a8 commit eb4ab5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/devices/sasi_hd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void SasiHd::Inquiry()
{
// Byte 0 = 0: Direct access device

constexpr array<uint8_t, 2> buf = { };
const array<uint8_t, 2> buf = { };
GetController()->CopyToBuffer(buf.data(), buf.size());

DataInPhase(buf.size());
Expand All @@ -51,7 +51,7 @@ void SasiHd::RequestSense()
//vector<uint8_t> buf(allocation_length ? allocation_length : 4);

// SASI fixed to non-extended format
array<uint8_t, 4> buf = { static_cast<uint8_t>(GetSenseKey()), static_cast<uint8_t>(GetLun() << 5) };
const array<uint8_t, 4> buf = { static_cast<uint8_t>(GetSenseKey()), static_cast<uint8_t>(GetLun() << 5) };
GetController()->CopyToBuffer(buf.data(), buf.size());

DataInPhase(buf.size());
Expand Down

0 comments on commit eb4ab5d

Please sign in to comment.