mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 00:30:29 +00:00
Ensures a safe default-selected drive.
This commit is contained in:
parent
93cecf0882
commit
c606931c93
@ -45,7 +45,7 @@ class DiskController: public WD::WD1770 {
|
||||
|
||||
protected:
|
||||
std::array<std::shared_ptr<Storage::Disk::Drive>, 4> drives_;
|
||||
size_t selected_drive_;
|
||||
size_t selected_drive_ = 0;
|
||||
void select_drive(size_t drive) {
|
||||
if(drive != selected_drive_) {
|
||||
selected_drive_ = drive;
|
||||
|
Loading…
x
Reference in New Issue
Block a user