From ad96c9bb9ff339fccd150b4fcc0a5b903dd24f21 Mon Sep 17 00:00:00 2001 From: Thomas Daede Date: Sun, 28 Nov 2021 19:30:42 -0800 Subject: [PATCH] Fix inverted density select in Greaseweazle driver. Pin 2 should be set high when high density is selected. --- lib/usb/greaseweazleusb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/usb/greaseweazleusb.cc b/lib/usb/greaseweazleusb.cc index f8bdccfb..ab70399c 100644 --- a/lib/usb/greaseweazleusb.cc +++ b/lib/usb/greaseweazleusb.cc @@ -515,7 +515,7 @@ public: { do_command({ CMD_SELECT, 3, (uint8_t)drive }); do_command({ CMD_MOTOR, 4, (uint8_t)drive, 1 }); - do_command({ CMD_SET_PIN, 4, 2, (uint8_t)(high_density ? 0 : 1) }); + do_command({ CMD_SET_PIN, 4, 2, (uint8_t)(high_density ? 1 : 0) }); } void measureVoltages(struct voltages_frame* voltages)