[2.0.x] HAL timer set/get count => set/get compare (#9581)
To reduce confusion over the current timer count vs. the compare (aka "top") value. Caution: this re-uses the function name, changing its meaning.
This commit is contained in:
1 parent
7a4029d1b1
commit
03d790451f
10 files changed
+65
-65
No files matched your search
@@ -108,7 +108,7 @@ class Stepper {
|
||||
// i.e., the current amount of pressure applied
|
||||
// to the spring (=filament).
|
||||
#else
|
||||
#define _NEXT_ISR(T) HAL_timer_set_count(STEP_TIMER_NUM, T);
|
||||
#define _NEXT_ISR(T) HAL_timer_set_compare(STEP_TIMER_NUM, T);
|
||||
#endif // LIN_ADVANCE
|
||||
|
||||
static long acceleration_time, deceleration_time;
|
||||
|
||||
Reference in new issue
Block a user