mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +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.
|
||||
/// @c false otherwise.
|
||||
bool is_access_command() const {
|
||||
bool is_access() const {
|
||||
switch(command()) {
|
||||
case Command::ReadData: case Command::ReadDeletedData:
|
||||
case Command::WriteData: case Command::WriteDeletedData:
|
||||
|
@ -109,7 +109,7 @@ class Status {
|
||||
void begin(const CommandDecoder &command) {
|
||||
set(MainStatus::DataReady, false);
|
||||
|
||||
if(command.is_access_command()) {
|
||||
if(command.is_access()) {
|
||||
set(MainStatus::ReadOrWriteOngoing, true);
|
||||
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.
|
||||
is_access_command_ = command_.is_access_command();
|
||||
is_access_command_ = command_.is_access();
|
||||
|
||||
if(is_access_command_) {
|
||||
status_.set(MainStatus::ReadOrWriteOngoing, true);
|
||||
|
Loading…
Reference in New Issue
Block a user