Commit 58e983f
committed
Fix: Preserve direction-change commands when stopping motors
Use stopAllMotors() instead of stopAllMotorsNow() to avoid clearing the
command queue. This ensures direction-change and SAVE_SETTINGS commands
complete even when spacebar is released or dialog is closed.
stopAllMotorsNow() retains its original behavior (clears queue) for
emergency stop scenarios where immediate halt is required.1 parent 494c252 commit 58e983f
File tree
1 file changed
+8
-7
lines changed- src/components/EscDshotDirection
1 file changed
+8
-7
lines changedLines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
| 423 | + | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| |||
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
438 | | - | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| |||
475 | 476 | | |
476 | 477 | | |
477 | 478 | | |
478 | | - | |
479 | | - | |
| 479 | + | |
| 480 | + | |
480 | 481 | | |
481 | | - | |
482 | | - | |
| 482 | + | |
| 483 | + | |
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
| |||
570 | 571 | | |
571 | 572 | | |
572 | 573 | | |
573 | | - | |
| 574 | + | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
| |||
0 commit comments