Fix weather sat handoff: remove defunct METEOR-M2, fire change event

- Remove 'METEOR-M2' (NORAD 40069) from WEATHER_SAT_KEYS — it has no
  entry in WEATHER_SATELLITES and no dropdown option, so the Capture
  button was silently scheduling against the wrong satellite
- Dispatch a 'change' event after setting satSelect.value in preSelect()
  and startPass() so any UI listeners (frequency display, mode info)
  update correctly when the satellite is set programmatically

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-03-19 23:52:14 +00:00
parent 7ca018fd7b
commit a2bd0e27f9
2 changed files with 6 additions and 2 deletions

View File

@@ -332,7 +332,10 @@ const WeatherSat = (function() {
*/ */
function preSelect(satellite) { function preSelect(satellite) {
const satSelect = document.getElementById('weatherSatSelect'); const satSelect = document.getElementById('weatherSatSelect');
if (satSelect) satSelect.value = satellite; if (satSelect) {
satSelect.value = satellite;
satSelect.dispatchEvent(new Event('change'));
}
} }
/** /**
@@ -342,6 +345,7 @@ const WeatherSat = (function() {
const satSelect = document.getElementById('weatherSatSelect'); const satSelect = document.getElementById('weatherSatSelect');
if (satSelect) { if (satSelect) {
satSelect.value = satellite; satSelect.value = satellite;
satSelect.dispatchEvent(new Event('change'));
} }
start(); start();
} }

View File

@@ -2194,7 +2194,7 @@
// Satellites that can be handed off to the weather-satellite capture mode // Satellites that can be handed off to the weather-satellite capture mode
const WEATHER_SAT_KEYS = new Set([ const WEATHER_SAT_KEYS = new Set([
'METEOR-M2', 'METEOR-M2-3', 'METEOR-M2-4' 'METEOR-M2-3', 'METEOR-M2-4'
]); ]);
function renderPassList() { function renderPassList() {