1
0
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:
Thomas Harte 2020-01-15 23:56:44 -05:00
parent 93cecf0882
commit c606931c93

View File

@ -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;