Fixed compiler errors

This commit is contained in:
mmcwilliams 2024-06-23 20:34:51 -04:00
parent 1bd8a68f01
commit f2f3dd9127
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
*.DS_Store
*.DS_Store
deploy.sh

View File

@ -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) {