Commit d606a4c
committed
OSD: use LC configured mask instead of loading all Logic Conditions
The OSD tab only needs to know which Logic Conditions are enabled to
populate dropdown selectors - it never inspects LC content. Replace
the heavyweight loadLogicConditions() call (which fetches up to 64
individual LCs via MSP) with a single MSP2_INAV_LOGIC_CONDITIONS_CONFIGURED
request that returns an 8-byte bitmask.
This also fixes #2552 (LC dropdowns showing "Logic 0") by moving the
mask fetch into the OSD.reload chain so data is available before
createCustomElements() builds the UI.1 parent 4756819 commit d606a4c
1 file changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2435 | 2435 | | |
2436 | 2436 | | |
2437 | 2437 | | |
2438 | | - | |
| 2438 | + | |
2439 | 2439 | | |
2440 | | - | |
2441 | | - | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
2442 | 2444 | | |
2443 | 2445 | | |
2444 | 2446 | | |
| |||
3558 | 3560 | | |
3559 | 3561 | | |
3560 | 3562 | | |
3561 | | - | |
3562 | | - | |
3563 | | - | |
3564 | | - | |
3565 | 3563 | | |
3566 | 3564 | | |
3567 | 3565 | | |
| |||
4177 | 4175 | | |
4178 | 4176 | | |
4179 | 4177 | | |
4180 | | - | |
4181 | | - | |
| 4178 | + | |
| 4179 | + | |
4182 | 4180 | | |
4183 | 4181 | | |
4184 | | - | |
4185 | | - | |
4186 | | - | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
4187 | 4188 | | |
4188 | 4189 | | |
4189 | 4190 | | |
| |||
0 commit comments