mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-18 01:30:56 +00:00
Avoid name duplication.
This commit is contained in:
parent
003c494aac
commit
d2203484cc
@ -134,7 +134,7 @@ class CommandDecoder {
|
|||||||
|
|
||||||
/// @returns @c true if this command involves reading or writing data, in which case target() will be valid.
|
/// @returns @c true if this command involves reading or writing data, in which case target() will be valid.
|
||||||
/// @c false otherwise.
|
/// @c false otherwise.
|
||||||
bool is_access_command() const {
|
bool is_access() const {
|
||||||
switch(command()) {
|
switch(command()) {
|
||||||
case Command::ReadData: case Command::ReadDeletedData:
|
case Command::ReadData: case Command::ReadDeletedData:
|
||||||
case Command::WriteData: case Command::WriteDeletedData:
|
case Command::WriteData: case Command::WriteDeletedData:
|
||||||
|
@ -109,7 +109,7 @@ class Status {
|
|||||||
void begin(const CommandDecoder &command) {
|
void begin(const CommandDecoder &command) {
|
||||||
set(MainStatus::DataReady, false);
|
set(MainStatus::DataReady, false);
|
||||||
|
|
||||||
if(command.is_access_command()) {
|
if(command.is_access()) {
|
||||||
set(MainStatus::ReadOrWriteOngoing, true);
|
set(MainStatus::ReadOrWriteOngoing, true);
|
||||||
status_[0] = command.drive_head();
|
status_[0] = command.drive_head();
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ void i8272::posit_event(int event_type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this is not clearly a command that's safe to carry out in parallel to a seek, end all seeks.
|
// If this is not clearly a command that's safe to carry out in parallel to a seek, end all seeks.
|
||||||
is_access_command_ = command_.is_access_command();
|
is_access_command_ = command_.is_access();
|
||||||
|
|
||||||
if(is_access_command_) {
|
if(is_access_command_) {
|
||||||
status_.set(MainStatus::ReadOrWriteOngoing, true);
|
status_.set(MainStatus::ReadOrWriteOngoing, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user