From 957eb519c10fcb436de55de77c33ee80d4ab0afc Mon Sep 17 00:00:00 2001 From: shrkey Date: Mon, 17 Oct 2016 14:58:14 +0100 Subject: [PATCH] more bugs --- darkwater/DW640.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/darkwater/DW640.cpp b/darkwater/DW640.cpp index 74996bc..4b2450c 100644 --- a/darkwater/DW640.cpp +++ b/darkwater/DW640.cpp @@ -284,7 +284,7 @@ DW_Servo *DW640::getServo(uint8_t servo) { DW_Stepper *DW640::getStepper(uint8_t stepper, uint16_t steps) { - num--; + stepper--; uint8_t ain1, ain2, bin1, bin2; @@ -444,7 +444,7 @@ void DW_Stepper::step(uint16_t steps, uint8_t dir, uint8_t style) { uint32_t uspers = usperstep; uint8_t ret = 0; - if (style == MICROSTEP) { + if (style == DW_MICROSTEP) { uspers /= MICROSTEPS; steps *= MICROSTEPS; }