mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Set drive before checking rotation speed for writing
This commit is contained in:
@@ -39,6 +39,7 @@ public:
|
||||
{
|
||||
if (hardSectorCount.get())
|
||||
{
|
||||
usbSetDrive(_drive, high_density, indexMode);
|
||||
std::cerr << "Measuring rotational speed... " << std::flush;
|
||||
nanoseconds_t oneRevolution = usbGetRotationalPeriod(hardSectorCount);
|
||||
_hardSectorThreshold = oneRevolution * 3 / (4 * hardSectorCount);
|
||||
|
||||
Reference in New Issue
Block a user