Skip to content

fix: correct 14.112-14.150 MHz to CW-only for ITU Region 2#8

Open
chrisdebian wants to merge 1 commit into
ham2k:mainfrom
chrisdebian:fix/region2-14mhz-phone-cw-boundary
Open

fix: correct 14.112-14.150 MHz to CW-only for ITU Region 2#8
chrisdebian wants to merge 1 commit into
ham2k:mainfrom
chrisdebian:fix/region2-14mhz-phone-cw-boundary

Conversation

@chrisdebian

Copy link
Copy Markdown

Summary

The 20m Phone segment (14112-14350 kHz) was tagged "regions": [1, 2], but Region 2 (Americas) band plans restrict phone to 14150 kHz and above — 14112-14150 is CW-only in Region 2. Region 1 correctly allows phone from 14112.

This meant modeForFrequency returned SSB for a Region 2 station at, e.g., 14.115 MHz, when it should return CW.

Fix

Split the single regions: [1, 2] Phone entry into:

  • Region 1 only, unchanged range (14112-14350)
  • A new Region 2 only entry starting at 14150 (14150-14350), mirroring the existing US-specific country override already present for the same range

Updated the one test that was asserting the old (incorrect) behavior — modeForFrequency(14140, { ituRegion: 2 }) now expects CW instead of SSB.

Context

Raised on the forum by a Region 2 user: https://forums.ham2k.com/t/automatically-defaults-to-wrong-mode-on-14-115/1607 — KI2D confirmed a PR would be welcome.

Test plan

  • npx jest — all 4 existing tests pass, including the corrected one
  • npx tsc --noEmit — clean
  • Manually traced modeForFrequency(14115, { ituRegion: 2 }) against the updated data and confirmed it now resolves to CW

The 20m Phone segment (14112-14350 kHz) was tagged for both Region 1
and Region 2, but Region 2 (Americas) band plans restrict phone to
14150 kHz and above; 14112-14150 is CW-only there. Region 1 correctly
allows phone from 14112.

Split the segment into a Region-1-only entry (unchanged range) and a
new Region-2-only entry starting at 14150, mirroring the existing
US-specific override. Updated the test that was asserting the old
(incorrect) behavior.

Reported on the forum: a Region 2 station at 14.115 MHz was getting
SSB instead of CW.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant