diff --git a/.gitignore b/.gitignore index ccc9fd9..f7afe45 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.DS_Store \ No newline at end of file +*.DS_Store +deploy.sh \ No newline at end of file diff --git a/TB6600MotorDriver.cpp b/TB6600MotorDriver.cpp index ce51425..38e5936 100644 --- a/TB6600MotorDriver.cpp +++ b/TB6600MotorDriver.cpp @@ -33,12 +33,12 @@ void TB6600MotorDriver::setDirection(uint8_t direction) { } } -void TB6600MotorDriver::_setDirection{ +void TB6600MotorDriver::_setDirection () { digitalWrite(_directionPin, _direction ? LOW : HIGH); } void TB6600MotorDriver::setSpeed(uint16_t rpm) { - _usPulse = 60000000 / ((uint32_t) revsteps * (uint32_t) rpm); + _usPulse = 60000000 / ((uint32_t) _revsteps * (uint32_t) rpm); } void TB6600MotorDriver::steps(uint64_t stepCount) {