From 9cc09a8fdf781899177dd04ddb7b207b9ea7f9cb Mon Sep 17 00:00:00 2001 From: Evan Benn Date: Wed, 9 Oct 2024 05:23:14 +0000 Subject: [PATCH] morse-regdb: APP-3508: (PR #875) Fix 1M channel primary channel error For a 1Mhz operating channel, the primary channel idx should be "0", not the channel number. This was not causing a bug as the primary channel is not used for 1Mhz operating channels. Approved-by: Sophronia Koilpillai Approved-by: James Haggerty --- morse-regdb/add_primary_channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morse-regdb/add_primary_channels.py b/morse-regdb/add_primary_channels.py index ea27c05..5ee121a 100755 --- a/morse-regdb/add_primary_channels.py +++ b/morse-regdb/add_primary_channels.py @@ -59,6 +59,6 @@ for country, rows in by_country.items(): assert allowed_primary_indexes, f"No allowed primaries for {country}, {row['s1g_chan']}" row["bw2m_s1g_prim_1mhz_chan_index"] = "|".join(map(str, allowed_primary_indexes)) else: - row["s1g_prim_1mhz_chan_index"] = row["s1g_chan"] + row["s1g_prim_1mhz_chan_index"] = "0" dw.writerow(row)