-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap defines #250
Wrap defines #250
Conversation
#define STEPS 64 | ||
#define STEPPER_SPEED 400 // 300 already worked, 467, too? | ||
#define STEPPER_ACCEL 800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't wrap these because I don't think they are used? I need to open a separate issue for it, they only exist in the nano and uno MFBoard.h files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
define STEPS 64
is indeed not used, but STEPPER_SPEED
and STEPPER_ACCEL
is used in MFStepper.cpp
.
But we could think about to move it to the MFStepper.h
file as it is more related to the stepper as to the boards and the speed and acceleration can be set by the connector now.
Firmware for this pull request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #249
Description of changes
Add
#ifndef
around all of the defines in the MFBoard.h files. Doesn't result in any change in functionality, just enables setting them via environment variables in the future.