mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-26 03:29:40 +00:00
Factored out the dull and repetitious stuff of writing n bytes of the same value.
This commit is contained in:
@@ -181,3 +181,7 @@ void MFMController::write_crc() {
|
||||
write_byte(crc >> 8);
|
||||
write_byte(crc & 0xff);
|
||||
}
|
||||
|
||||
void MFMController::write_n_bytes(int quantity, uint8_t value) {
|
||||
while(quantity--) write_byte(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user