Fix LED/VTX color desync
日本語
素早くVTXチャネルを切り替えると、LEDの色がVTXチャネルと一致しなくなる不具合を修正しました。
• VTXチャネル変更後にFCへping送信を行い、応答を確認してから続行するようにしました
• FCから実際のLED色を読み返して検証し、意図した色と異なる場合は自動的に再送するようにしました
• EEPROMへの保存を選択操作が落ち着いてから一度だけ行うようにし、保存中のビジー状態が後続コマンドを妨げないようにしました
• 上記の改善を Led4Vtx.lua と Led4VtxLite.lua の両方に適用しました
• 低メモリの送信機(QX7など)向けに、確認・再送処理を省いた軽量版 Led4VtxSmall.lua を追加しました
English
Fixed an issue where rapidly switching VTX channels could cause the LED color to desync from (lag behind) the selected VTX channel.
• After a VTX channel change, the script now pings the FC and waits for a confirmed response before continuing
• LED colors are now read back from the FC and verified against the intended color, automatically resending if they don't match
• EEPROM save is now debounced to happen once after selections settle, avoiding busy periods that could block subsequent commands
• Applied the above fixes to both Led4Vtx.lua and Led4VtxLite.lua
• Added Led4VtxSmall.lua , a lightweight variant without the verify/retry logic, for low-memory transmitters (e.g. QX7)