Skip to content

Spindle at Speed issues (Cont) #3

Answered by rvalotta
rvalotta asked this question in Q&A
Discussion options

You must be logged in to vote

That has it working thank you :)

The first

Had to make the following changes to get it to compile with STMIDE. The first one the compiler thought braces were missing based on how it was indented. The second one ifdef i2c_enable resolves true even when i2c_enable is set to 0

diff --git a/Src/driver.c b/Src/driver.c
index 8af4b52..00fa0e3 100644
--- a/Src/driver.c
+++ b/Src/driver.c
@@ -1879,8 +1879,9 @@ static bool driver_setup (settings_t *settings)

 hal.settings_changed(settings);
  • if(hal.spindle.set_state)
  • if(hal.spindle.set_state) {
    hal.spindle.set_state((spindle_state_t){0}, 0.0f);
    hal.coolant.set_state((coolant_state_t){0});
  • }

@@ -2007,7 +2008,7 @@ bool driver_init (void)
stream_…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@terjeio
Comment options

@rvalotta
Comment options

Comment options

You must be logged in to vote
1 reply
@terjeio
Comment options

Comment options

You must be logged in to vote
1 reply
@terjeio
Comment options

Answer selected by rvalotta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants