Commit cd44435
fix(filter-wheel): reset all W/W2 homing-phase flags at HOME entry
A HOME command is dispatched even while a previous home is in progress
(process_serial_message does not gate on mcu_cmd_execution_in_progress).
Clearing only is_backing_off_W left a stale is_homing_W, so check_homing_w()
could run alongside the new back-off phase and read a stale latch — the very
failure this branch fixes. Reset is_homing_W(2) and is_preparing_for_homing_W(2)
too, so a new home always starts the back_off -> prepare -> check sequence clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d3698d4 commit cd44435
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
676 | 681 | | |
| 682 | + | |
| 683 | + | |
677 | 684 | | |
678 | 685 | | |
679 | 686 | | |
| |||
718 | 725 | | |
719 | 726 | | |
720 | 727 | | |
| 728 | + | |
| 729 | + | |
721 | 730 | | |
| 731 | + | |
| 732 | + | |
722 | 733 | | |
723 | 734 | | |
724 | 735 | | |
| |||
0 commit comments