mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Make the new 40-track flag common between source and sink.
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
#include "fluxmap.h"
|
||||
#include "usb/usb.h"
|
||||
#include "fluxsink/fluxsink.h"
|
||||
#include "flaggroups/fluxsourcesink.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
FlagGroup hardwareFluxSinkFlags = {
|
||||
&fluxSourceSinkFlags,
|
||||
&usbFlags,
|
||||
};
|
||||
|
||||
@@ -21,11 +23,6 @@ static IntFlag hardSectorCount(
|
||||
"number of hard sectors on the disk (0=soft sectors)",
|
||||
0);
|
||||
|
||||
static BoolFlag fortyTrack(
|
||||
{ "--write-40-track" },
|
||||
"indicates a 40 track drive when writing",
|
||||
false);
|
||||
|
||||
void setHardwareFluxSinkDensity(bool high_density)
|
||||
{
|
||||
::high_density = high_density;
|
||||
@@ -62,7 +59,7 @@ public:
|
||||
void writeFlux(int track, int side, Fluxmap& fluxmap)
|
||||
{
|
||||
usbSetDrive(_drive, high_density, indexMode);
|
||||
if (fortyTrack)
|
||||
if (fluxSourceSinkFortyTrack)
|
||||
{
|
||||
if (track & 1)
|
||||
Error() << "cannot write to odd physical tracks in 40-track mode";
|
||||
|
||||
Reference in New Issue
Block a user