mirror of https://github.com/akuker/RASCSI.git
Update enum
This commit is contained in:
parent
225b4a7f73
commit
64e373c678
|
@ -61,9 +61,7 @@ string ScsiExecutor::Execute(const string& filename, protobuf_format input_forma
|
|||
}
|
||||
|
||||
array<uint8_t, 10> cdb = { };
|
||||
cdb[1] = input_format == protobuf_format::binary ? 0x00 : 0x01;
|
||||
cdb[1] |= input_format == protobuf_format::json ? 0x00 : 0x02;
|
||||
cdb[1] |= input_format == protobuf_format::text ? 0x00 : 0x04;
|
||||
cdb[1] = static_cast<uint8_t>(input_format);
|
||||
cdb[7] = static_cast<uint8_t>(length >> 8);
|
||||
cdb[8] = static_cast<uint8_t>(length);
|
||||
|
||||
|
|
|
@ -26,7 +26,9 @@ class ScsiExecutor
|
|||
public:
|
||||
|
||||
enum class protobuf_format {
|
||||
binary, json,text
|
||||
binary = 0b001,
|
||||
json = 0b010,
|
||||
text = 0b100
|
||||
};
|
||||
|
||||
ScsiExecutor(BUS &bus, int id)
|
||||
|
|
Loading…
Reference in New Issue