genesys: Fix incorrect selection of step type for fast table on gl843

merge-requests/340/head
Povilas Kanapickas 2020-02-01 23:28:23 +02:00
rodzic 07e3d5d4d6
commit 06cee81dbe
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -975,7 +975,7 @@ static void gl843_init_motor_regs_scan(Genesys_Device* dev,
r->value |= scan_dummy; /* dummy lines */
reg->set8_mask(REG_0x67, static_cast<unsigned>(motor_profile.step_type) << REG_0x67S_STEPSEL, 0xc0);
reg->set8_mask(REG_0x68, static_cast<unsigned>(motor_profile.step_type) << REG_0x68S_FSTPSEL, 0xc0);
reg->set8_mask(REG_0x68, static_cast<unsigned>(fast_profile->step_type) << REG_0x68S_FSTPSEL, 0xc0);
// steps for STOP table
reg->set8(REG_FMOVDEC, fast_table.steps_count / step_multiplier);