From f2f3dd9127d671464efcaa6ccf9bf752eb9e4eb7 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 23 Jun 2024 20:34:51 -0400 Subject: [PATCH] Fixed compiler errors --- .gitignore | 3 ++- TB6600MotorDriver.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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) {