Repository navigation
Commit 78dd2b6
committed
task: hold an MDI back while a kinematics switch is still landing
An abort routine that selects a kinematics, G13.1 in ON_ABORT_COMMAND,
runs inside the interpreter at once, but its switch reaches motion later,
and until it has landed the interpreter is back on the type motion still
runs. An MDI arriving in that wait was read straight away under the old
type: G43.4 H1 sent right after an abort found the interpreter already on
the primary kinematics, queued no switch, and left G43.4 active with
motion in identity.
A G12.1 or G13.1 in a program or MDI line sets the wait flag, which holds
an MDI back. The abort routine cannot, so task now also queues an MDI that
arrives while it waits for a kinematics switch.
tests/kins-switch sends G43.4 H1 right after an abort, ten times. Under
load, runtests -j 4 with 8 CPU hogs in a sandbox, it failed 28 of 40 runs
without the change and passed 40 of 40 with it. The full runtests suite
passes.1 parent 0abf419 commit 78dd2b6
2 files changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | | - | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1480 | 1483 | | |
1481 | 1484 | | |
1482 | 1485 | | |
1483 | 1486 | | |
1484 | | - | |
| 1487 | + | |
| 1488 | + | |
1485 | 1489 | | |
1486 | 1490 | | |
1487 | 1491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
484 | 508 | | |
485 | 509 | | |
0 commit comments