Commit 0aaf02d
committed
motorRecord: prevent endless loop VAL-HOMF-VAL
The following lead to an endless loop:
- move the motor by writing to the .VAL field
- while moving, home the motor using the HOMF field
- while still homing, write a different value to the VAL field.
The problem is that for "pmr->val != pmr->lval" the motorRecord is send
into do_work() and a new HOME is started.
Solution:
Reset the HOMF and HOMR buttons.1 parent 995ffab commit 0aaf02d
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
1388 | 1395 | | |
1389 | 1396 | | |
1390 | 1397 | | |
| |||
0 commit comments