mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +00:00
Added a CRC check for read address, ensured CRC, lost data and record not found are initially reset.
This commit is contained in:
parent
044c920a5b
commit
eca3995481
@ -768,6 +768,9 @@ void WD1770::posit_event(Event new_event_type)
|
||||
begin_type_3:
|
||||
update_status([] (Status &status) {
|
||||
status.type = Status::Three;
|
||||
status.crc_error = false;
|
||||
status.lost_data = false;
|
||||
status.record_not_found = false;
|
||||
});
|
||||
if(!has_motor_on_line() && !has_head_load_line()) goto type3_test_delay;
|
||||
|
||||
@ -820,6 +823,12 @@ void WD1770::posit_event(Event new_event_type)
|
||||
|
||||
if(distance_into_section_ == 7)
|
||||
{
|
||||
if(crc_generator_.get_value())
|
||||
{
|
||||
update_status([] (Status &status) {
|
||||
status.crc_error = true;
|
||||
});
|
||||
}
|
||||
goto wait_for_command;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user