Skip to content
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

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Wrap defines #250

merged 2 commits into from
Sep 5, 2023

Conversation

neilenns
Copy link
Contributor

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.

@neilenns neilenns requested a review from DocMoebiuz as a code owner June 29, 2023 13:48
Comment on lines 73 to 75
#define STEPS 64
#define STEPPER_SPEED 400 // 300 already worked, 467, too?
#define STEPPER_ACCEL 800
Copy link
Contributor Author

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.

Copy link
Collaborator

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.

@github-actions
Copy link

Firmware for this pull request:
Firmware.zip

Copy link
Collaborator

@MobiFlight-Admin MobiFlight-Admin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Collaborator

@DocMoebiuz DocMoebiuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DocMoebiuz DocMoebiuz merged commit 018791b into MobiFlight:main Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrap MFBoard.h #defines so they can be specified via environment variables
4 participants