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) {
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');
if (satSelect) {
satSelect.value = satellite;
satSelect.dispatchEvent(new Event('change'));
}
start();
}