Commit 3d5e4b2
committed
fix: prevent Mixer tab hang and stale preview in direct assignment mode
Move loadOutputAssignment out of the mandatory load chain to avoid a
permanent hang when a malformed packet drops the MSP callback. The tab
now renders immediately with the JS fallback and updates once firmware
responds (2 s timeout guard for safety).
Add invalidateDirectAssignment() so that local motor/servo rule changes
(preset load, add/remove rules, motor wizard) fall back to the JS
algorithm rather than showing stale cached firmware data.
Add LED and PINIO output type rendering in getOutputTableDirect() and
clear directAssignments in flush() for clean reconnect state.1 parent 8d51ce1 commit 3d5e4b2
2 files changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
| |||
207 | 217 | | |
208 | 218 | | |
209 | 219 | | |
| 220 | + | |
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
670 | 669 | | |
671 | 670 | | |
672 | 671 | | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| 798 | + | |
798 | 799 | | |
799 | 800 | | |
800 | 801 | | |
| |||
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
| 817 | + | |
816 | 818 | | |
817 | 819 | | |
818 | 820 | | |
819 | 821 | | |
820 | 822 | | |
821 | 823 | | |
| 824 | + | |
822 | 825 | | |
823 | 826 | | |
824 | 827 | | |
| |||
830 | 833 | | |
831 | 834 | | |
832 | 835 | | |
| 836 | + | |
833 | 837 | | |
834 | 838 | | |
835 | 839 | | |
| |||
838 | 842 | | |
839 | 843 | | |
840 | 844 | | |
| 845 | + | |
841 | 846 | | |
842 | 847 | | |
843 | 848 | | |
| |||
855 | 860 | | |
856 | 861 | | |
857 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
858 | 877 | | |
859 | 878 | | |
860 | 879 | | |
| |||
0 commit comments