1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-01 11:16:16 +00:00

Adopt new indentation, improve constness.

This commit is contained in:
Thomas Harte
2024-11-30 15:53:58 -05:00
parent 36edfe9715
commit 5545906063
25 changed files with 1242 additions and 1186 deletions

View File

@@ -10,16 +10,16 @@
using namespace Apple::Disk;
DiskIIDrive::DiskIIDrive(int input_clock_rate) :
DiskIIDrive::DiskIIDrive(const int input_clock_rate) :
IWMDrive(input_clock_rate, 1) {
Drive::set_rotation_speed(300.0f);
}
void DiskIIDrive::set_enabled(bool enabled) {
void DiskIIDrive::set_enabled(const bool enabled) {
set_motor_on(enabled);
}
void DiskIIDrive::set_control_lines(int lines) {
void DiskIIDrive::set_control_lines(const int lines) {
// If the stepper magnet selections have changed, and any is on, see how
// that moves the head.
if(lines ^ stepper_mask_ && lines) {