mirror of
https://github.com/synthetos/g2.git
synced 2026-09-25 16:33:38 +08:00
ifndef broke accumulate encoder function used by get machine coords
This commit is contained in:
@@ -96,18 +96,11 @@
|
||||
/**** Macros ****/
|
||||
// used to abstract the encoder code out of the stepper so it can be managed in one place
|
||||
|
||||
|
||||
#ifndef STEP_DIR_SERVO
|
||||
#define SET_ENCODER_STEP_SIGN(m, s) en.en[m].step_sign = s;
|
||||
#define INCREMENT_ENCODER(m) en.en[m].steps_run += en.en[m].step_sign;
|
||||
#define ACCUMULATE_ENCODER(m) \
|
||||
en.en[m].encoder_steps += en.en[m].steps_run; \
|
||||
en.en[m].steps_run = 0;
|
||||
#else
|
||||
#define SET_ENCODER_STEP_SIGN(m, s)
|
||||
#define INCREMENT_ENCODER(m)
|
||||
#define ACCUMULATE_ENCODER(m)
|
||||
#endif
|
||||
|
||||
/**** Structures ****/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user