Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Oct 29, 2022
1 parent f9ab4b3 commit 8e42f0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ void loop() {
- исправлен рывок при смене направления в GStepper
- v2.6.1 - поправлена бага в GStepper2
- v2.6.2 - оптимизированы вычисления в GStepper2, GPlanner и GPlanner2
- v2.6.3 - reverse() в step-dir драйвере теперь применяется сразу

<a id="feedback"></a>
## Баги и обратная связь
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=GyverStepper
version=2.6.2
version=2.6.3
author=AlexGyver <alex@alexgyver.ru>
maintainer=AlexGyver <alex@alexgyver.ru>
sentence=Fast library for stepmotor control and multi-axis planning
Expand Down
1 change: 1 addition & 0 deletions src/GyverStepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
- исправлен рывок при смене направления в GStepper
v2.6.1 - поправлена бага в GStepper2
v2.6.2 - оптимизированы вычисления в GStepper2, GPlanner и GPlanner2
v2.6.3 - reverse() в step-dir драйвере теперь применяется сразу
*/

/*
Expand Down
3 changes: 3 additions & 0 deletions src/StepperCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class Stepper {

// инвертировать направление мотора
void reverse(bool val) {
if (_DRV == STEPPER2WIRE) {
if (_TYPE == STEPPER_PINS && _globDir != val) setPin(1, (dir > 0) ^ val);
}
_globDir = val;
}

Expand Down

0 comments on commit 8e42f0e

Please sign in to comment.