diff --git a/changelog.json b/changelog.json index e2340f8..1661df9 100644 --- a/changelog.json +++ b/changelog.json @@ -5,12 +5,14 @@ "en": [ "Elecraft console: the S-meter is calibrated against a real K3 — S9 and the +dB readings now match the radio’s own display (they read about two S-units low).", "Elecraft console: an SWR spike (the K3’s own blip at the end of an FT8 frame) no longer fades over twelve seconds — the peak shows briefly, then the meter returns straight to the live reading.", - "Icom: the IC-7760 joins the model list (CI-V address B2h)." + "Icom: the IC-7760 joins the model list (CI-V address B2h).", + "Icom console: the IC-7760 gets its real attenuator steps — 6/12/18 dB." ], "fr": [ "Console Elecraft : le S-mètre est calibré sur un vrai K3 — S9 et les +dB correspondent désormais à l’affichage de la radio (il lisait environ deux points S trop bas).", "Console Elecraft : un pic de ROS (le sursaut du K3 en fin de trame FT8) ne s’estompe plus pendant douze secondes — le pic s’affiche brièvement, puis le ros-mètre revient directement à la valeur réelle.", - "Icom : l’IC-7760 rejoint la liste des modèles (adresse CI-V B2h)." + "Icom : l’IC-7760 rejoint la liste des modèles (adresse CI-V B2h).", + "Console Icom : l’IC-7760 reçoit ses vrais crans d’atténuateur — 6/12/18 dB." ] }, { diff --git a/frontend/src/components/IcomPanel.tsx b/frontend/src/components/IcomPanel.tsx index c4066b8..934d66c 100644 --- a/frontend/src/components/IcomPanel.tsx +++ b/frontend/src/components/IcomPanel.tsx @@ -83,13 +83,14 @@ const MODES = ['SSB', 'CW', 'RTTY', 'PSK', 'AM', 'FM']; // Attenuator steps are MODEL-dependent even though the CI-V command (0x11) is the // same: the value byte is the dB. The IC-7610 (and 7700/7800/7851) have a 6/12/18 -// dB stepped attenuator; the IC-7300/705/7100 have a single 20 dB attenuator; the +// dB stepped attenuator, and the IC-7760 the same (confirmed on a real one); the +// IC-7300/705/7100 have a single 20 dB attenuator; the // IC-9700 a single 10 dB. Offering the wrong steps = a dead button (the rig NAKs // e.g. 6 dB on a 7300). Default to the common single 20 dB for unknown models. function attOptions(model?: string): { v: string; l: string }[] { const m = (model ?? '').toUpperCase(); const OFF = { v: '0', l: 'OFF' }; - if (/(7610|7700|7800|7850|7851)/.test(m)) { + if (/(7610|7700|7760|7800|7850|7851)/.test(m)) { return [OFF, { v: '6', l: '6dB' }, { v: '12', l: '12dB' }, { v: '18', l: '18dB' }]; } if (m.includes('9700')) return [OFF, { v: '10', l: '10dB' }];