mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-12 15:31:09 +00:00
Made an attempt to avoid repetition of sync bytes.
This commit is contained in:
parent
0123b37213
commit
6f0b5427e4
@ -378,9 +378,13 @@ std::vector<uint8_t> Parser::get_track()
|
|||||||
}
|
}
|
||||||
if(is_sync)
|
if(is_sync)
|
||||||
{
|
{
|
||||||
if(number_of_bits&7) number_of_bits += 8 - (number_of_bits&7);
|
if(number_of_bits&7)
|
||||||
result.push_back(get_byte_for_shift_value((uint16_t)shift_register_));
|
{
|
||||||
number_of_bits += 8;
|
number_of_bits += 8 - (number_of_bits&7);
|
||||||
|
if(!result.empty()) printf("[%02x]", result.back());
|
||||||
|
result.push_back(get_byte_for_shift_value((uint16_t)shift_register_));
|
||||||
|
number_of_bits += 8;
|
||||||
|
}
|
||||||
is_clock = true;
|
is_clock = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user