Fixed Write command max length
This commit is contained in:
parent
6a5d9696e7
commit
b019ab7684
|
@ -36,7 +36,7 @@ void Instruction::Write::fromBytes(uint32_t offset, const std::vector<uint8_t> &
|
|||
|
||||
uint32_t command = bytes[offset++];
|
||||
|
||||
uint8_t count = (1 + (command >> 2) & 0b1111);
|
||||
uint8_t count = (1 + ((command >> 2) & 0b1111));
|
||||
address.offset = command & 0b11;
|
||||
|
||||
address.address = bytes[offset++] << 16;
|
||||
|
|
Loading…
Reference in a new issue