correct writing memory channels below 50MHz in radios with hacked firmware

main
sq5bpf 2023-06-19 22:56:12 +02:00
rodzic bed08b1b13
commit 1156789f09
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -571,6 +571,11 @@ def _find_band(self, hz):
B = BANDS_NOLIMITS
else:
B = BANDS
# currently the hacked firmware sets band=1 below 50MHz
if self.FIRMWARE_NOLIMITS and mhz < 50.0:
return 1
for a in B:
if mhz >= B[a][0] and mhz <= B[a][1]:
return a