mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
First milestone towards flags rewrite --- it builds and the tests pass, but
nothing actually works.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "usb.h"
|
||||
#include "fluxsource.h"
|
||||
|
||||
FlagGroup hardwareFluxSourceFlags;
|
||||
|
||||
static IntFlag revolutions(
|
||||
{ "--revolutions" },
|
||||
"read this many revolutions of the disk",
|
||||
@@ -56,7 +58,7 @@ private:
|
||||
|
||||
void setHardwareFluxSourceRevolutions(int revolutions)
|
||||
{
|
||||
::revolutions.value = ::revolutions.defaultValue = revolutions;
|
||||
::revolutions.setDefaultValue(revolutions);
|
||||
}
|
||||
|
||||
std::unique_ptr<FluxSource> FluxSource::createHardwareFluxSource(unsigned drive)
|
||||
|
||||
Reference in New Issue
Block a user