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
This commit is contained in:
Evan Benn 2024-10-09 05:23:14 +00:00 committed by Arien Judge
parent 4142d69705
commit 9cc09a8fdf

View File

@ -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)