Fixed Write command max length

This commit is contained in:
DataHoarder 2021-08-03 00:25:51 +02:00
parent 6a5d9696e7
commit b019ab7684

View file

@ -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;