Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
dforsi authored and kk7ds committed Jun 26, 2023
1 parent be00c4e commit c2e6518
Show file tree
Hide file tree
Showing 45 changed files with 116 additions and 116 deletions.
8 changes: 4 additions & 4 deletions chirp/chirp_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def __init__(self):
"Indicates that the radio supports general settings")
self.init("has_variable_power", False,
"Indicates the radio supports any power level between the "
"min and max in valid_powe_levels")
"min and max in valid_power_levels")

self.init("valid_modes", list(MODES),
"Supported emission (or receive) modes")
Expand Down Expand Up @@ -971,7 +971,7 @@ def __getitem__(self, name):
return self.__dict__[name]

def validate_memory(self, mem):
"""Return a list of warnings and errors that will be encoundered
"""Return a list of warnings and errors that will be encountered
if trying to set @mem on the current radio"""
msgs = []

Expand Down Expand Up @@ -1166,7 +1166,7 @@ def get_memory(self, number):
in the radio's memory. The memory should accurately represent what is
actually stored in the radio as closely as possible. If the radio
does not support changing some attributes of the location in question,
the Memory.immutable list should be set approproately.
the Memory.immutable list should be set appropriately.
NB: No changes to the radio's memory should occur as a result of
calling get_memory().
Expand Down Expand Up @@ -1225,7 +1225,7 @@ def get_sub_devices(self):
return []

def validate_memory(self, mem):
"""Return a list of warnings and errors that will be encoundered
"""Return a list of warnings and errors that will be encountered
if trying to set @mem on the current radio"""
rf = self.get_features()
return rf.validate_memory(mem)
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/alinco.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ def set_memory(self, mem):
elif mem.tmode == "TSQL":
_mem.squelch_type = self.TMODES.index("TSQL")
# Note how the same TSQL tone is copied to both memory
# locaations
# locations
try:
_mem.tx_tone = ALINCO_TONES.index(mem.ctone)+1
_mem.rx_tone = ALINCO_TONES.index(mem.ctone)+1
Expand Down
10 changes: 5 additions & 5 deletions chirp/drivers/anytone778uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def do_upload(radio):
bptr += MEMORY_RW_BLOCK_SIZE

if write_response == '\x0a':
# NACK from radio, e.g. checksum wrongn
# NACK from radio, e.g. checksum wrong
LOG.debug('Radio returned 0x0a - NACK:')
LOG.debug(' * write cmd:\n%s' % util.hexprint(write_command))
LOG.debug(' * write response:\n%s' %
Expand Down Expand Up @@ -642,7 +642,7 @@ def dtcs_code_val_to_bits(code):

class AnyTone778UVBase(chirp_common.CloneModeRadio,
chirp_common.ExperimentalRadio):
'''AnyTone 778UV and probably Retivis RT95 and others'''
'''AnyTone 778UV and probably Retevis RT95 and others'''
BAUD_RATE = 9600
NEEDS_COMPAT_SERIAL = False
NAME_LENGTH = 5
Expand Down Expand Up @@ -888,7 +888,7 @@ def get_memory(self, number):
mem.rx_dtcs = rxcode
# #8327 Not sure this is the correct interpretation of
# DevelopersToneModes, but it seems to make it work round
# tripping with the anytone software. DTM implies that we
# tripping with the Anytone software. DTM implies that we
# might not need to set mem.dtcs, but if we do it only DTCS
# rx works (as if we were Cross:None->DTCS).
mem.dtcs = rxcode
Expand Down Expand Up @@ -1320,7 +1320,7 @@ def _pswd_vfy(setting, obj, atrb):
rset = RadioSetting("settings.tbstFrequency", "TBST frequency", rs)
function.append(rset)

# Save Channel Perameter
# Save Channel Parameter
rs = RadioSettingValueBoolean(_settings.saveChParameter)
rset = RadioSetting("settings.saveChParameter",
"Save channel parameter", rs)
Expand Down Expand Up @@ -1774,7 +1774,7 @@ class YedroYCM04vus(AnyTone778UVBase):


class AnyTone778UVvoxBase(AnyTone778UVBase):
'''AnyTone 778UV VOX, Retivis RT95 VOX and others'''
'''AnyTone 778UV VOX, Retevis RT95 VOX and others'''
NAME_LENGTH = 6
HAS_VOX = True

Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/anytone_iii.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


class ATBankModel(chirp_common.BankModel):
"""Anytone Banks A-J, Each chan in zero or one bank"""
"""AnyTone Banks A-J, Each chan in zero or one bank"""

def __init__(self, radio, name='Banks'):
super(ATBankModel, self).__init__(radio, name)
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ap510.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def boolstr(b):
class AP510Memory(object):
"""Parses and generates AP510 key/value format
The AP510 sends it's configuration as a set of keys and values. There
The AP510 sends its configuration as a set of keys and values. There
is one key/value pair per line. Line separators are \r\n. Keys are
deliminated from values with the = symbol.
Expand Down
4 changes: 2 additions & 2 deletions chirp/drivers/bf_t1.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _model_match(cls, data):

def _decode_ranges(low, high):
"""Unpack the data in the ranges zones in the memmap and return
a tuple with the integer corresponding to the Mhz it means"""
a tuple with the integer corresponding to the MHz it means"""
return (int(low) * 100000, int(high) * 100000)


Expand Down Expand Up @@ -435,7 +435,7 @@ def _decode_ranges(low, high):
u8 fmrange; // fm range 1 = low[65-76](ASIA), 0 = high[76-108](AMERICA)
u8 alarm; // alarm (count down timer)
// d0 - d16 in half hour increments => off, 0.5 - 8.0 h
u8 voice; // voice prompt 0 = off, 1 = english, 2 = chinese
u8 voice; // voice prompt 0 = off, 1 = English, 2 = Chinese
u8 volume; // volume 1-7 as per the radio steps
// set to #FF by original software on upload
// chirp uploads actual value and works.
Expand Down
14 changes: 7 additions & 7 deletions chirp/drivers/btech.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def model_match(cls, data):

def _decode_ranges(low, high):
"""Unpack the data in the ranges zones in the memmap and return
a tuple with the integer corresponding to the Mhz it means"""
a tuple with the integer corresponding to the MHz it means"""
ilow = int(low[0]) * 100 + int(low[1]) * 10 + int(low[2])
ihigh = int(high[0]) * 100 + int(high[1]) * 10 + int(high[2])
ilow *= 1000000
Expand Down Expand Up @@ -1092,7 +1092,7 @@ def _zero_settings():
LOG.debug("New mem is empty.")
else:
LOG.debug("New mem is NOT empty")
# set extra-settings to default ONLY when apreviously empty or
# set extra-settings to default ONLY when a previously empty or
# deleted memory was edited to prevent errors such as #4121
if mem_was_empty:
LOG.debug("old mem was empty. Setting default for extras.")
Expand Down Expand Up @@ -3463,7 +3463,7 @@ def set_options(self):
LOG.info("Radio ranges: VHF %d to %d" % vhf)
LOG.info("Radio ranges: UHF %d to %d" % uhf)

# 220Mhz radios case
# 220MHz radios case
if self.MODEL in ["UV-2501+220", "KT8900R"]:
vhf2 = _decode_ranges(ranges.vhf2_low, ranges.vhf2_high)
LOG.info("Radio ranges: VHF(220) %d to %d" % vhf2)
Expand Down Expand Up @@ -3970,12 +3970,12 @@ def set_options(self):

# the additional bands
if self.MODEL in ["UV-25X4", "KT7900D"]:
# 200Mhz band
# 200MHz band
vhf2 = _decode_ranges(ranges.vhf2_low, ranges.vhf2_high)
LOG.info("Radio ranges: VHF(220) %d to %d" % vhf2)
self._220_range = vhf2

# 350Mhz band
# 350MHz band
uhf2 = _decode_ranges(ranges.uhf2_low, ranges.uhf2_high)
LOG.info("Radio ranges: UHF(350) %d to %d" % uhf2)
self._350_range = uhf2
Expand Down Expand Up @@ -4933,12 +4933,12 @@ def set_options(self):

# the additional bands
if self.MODEL in ["KT-8R"]:
# 200Mhz band
# 200MHz band
vhf2 = _decode_ranges(ranges.vhf2_low, ranges.vhf2_high)
LOG.info("Radio ranges: VHF(220) %d to %d" % vhf2)
self._220_range = vhf2

# 350Mhz band
# 350MHz band
uhf2 = _decode_ranges(ranges.uhf2_low, ranges.uhf2_high)
LOG.info("Radio ranges: UHF(350) %d to %d" % uhf2)
self._350_range = uhf2
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/fd268.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def do_magic(radio):
status.msg = "Linking to radio, please wait."
radio.status_fn(status)

# every byte of this magic chain must be send separatedly
# every byte of this magic chain must be send separately
magic = "\x02PROGRA"

# start the fun, finger crossed please...
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ft1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ def _encode_label(self, mem):
return self._add_ff_pad(label, 16)

def _encode_charsetbits(self, mem):
# We only speak english here in chirpville
# We only speak English here in chirpville
return 0x0000

def _decode_power_level(self, mem):
Expand Down
4 changes: 2 additions & 2 deletions chirp/drivers/ft4.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def get_memory_mappings(self, memory):
# is 6 (PAGER). Each row is a tuple. Its first member is a list of
# [tmode,cross] or [tmode, cross, suppress]. "Suppress" is used only when
# encoding UI-->radio. When decoding radio-->UI, two of the sql_types each
# result in 5 possibible UI decodings depending on the tx and rx codes, and the
# result in 5 possible UI decodings depending on the tx and rx codes, and the
# list in each of these rows has five members. These two row tuples each have
# two additional members to specify which of the radio fields to examine.
# The map from CHIRP UI to radio image types is also built from this table.
Expand Down Expand Up @@ -837,7 +837,7 @@ def get_prog(i, val_list, valndx, sname, longname, f_apply):
# A param is a tuple:
# for a simple param: (paramname, paramtitle,[valuename list])
# for a handler param: (paramname, paramtitle,( handler,[handler params]))
# This is a class variable. subclasses msut create a variable named
# This is a class variable. subclasses must create a variable named
# class_group_descs. The FT-4 classes simply equate this, but the
# FT-65 classes must copy and modify this.
group_descriptions = [
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ft450d.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class FT450DRadio(yaesu_clone.YaesuCloneModeRadio):
mym_cw:1,
mym_usb:1,
mym_lsb:1;
u8 myb_24:1, // My Band: 24Mhz set = OFF
u8 myb_24:1, // My Band: 24MHz set = OFF
myb_21:1,
myb_18:1,
myb_14:1,
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ft70.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def _encode_label(self, mem):
return self._add_ff_pad(mem.name.rstrip(), 6)

def _encode_charsetbits(self, mem):
# We only speak english here in chirpville
# We only speak English here in chirpville
return [0x00, 0x00]

def _decode_power_level(self, mem): # 3 High 2 Mid 1 Low
Expand Down
8 changes: 4 additions & 4 deletions chirp/drivers/ft817.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FT817Radio(yaesu_clone.YaesuCloneModeRadio):
CHARSET.remove("\\")

_memsize = 6509
# block 9 (130 Bytes long) is to be repeted 40 times
# block 9 (130 Bytes long) is to be repeated 40 times
_block_lengths = [2, 40, 208, 182, 208, 182, 198, 53, 130, 118, 118]

MEM_FORMAT = """
Expand Down Expand Up @@ -623,7 +623,7 @@ def _set_normal(self, mem):
if mem.empty:
if mem.number == 1:
# as Dan says "yaesus are not good about that :("
# if you ulpoad an empty image you can brick your radio
# if you upload an empty image you can brick your radio
raise Exception("Sorry, can't delete first memory")
if wasvalid and not wasused:
self._memobj.filled[(mem.number - 1) // 8] &= \
Expand Down Expand Up @@ -1121,7 +1121,7 @@ class FT817NDRadio(FT817Radio):

_model = ""
_memsize = 6521
# block 9 (130 Bytes long) is to be repeted 40 times
# block 9 (130 Bytes long) is to be repeated 40 times
_block_lengths = [2, 40, 208, 182, 208, 182, 198, 53, 130, 118, 130]


Expand All @@ -1136,7 +1136,7 @@ class FT817NDUSRadio(FT817Radio):
_model = ""
_US_model = True
_memsize = 6651
# block 9 (130 Bytes long) is to be repeted 40 times
# block 9 (130 Bytes long) is to be repeated 40 times
_block_lengths = [2, 40, 208, 182, 208, 182, 198, 53, 130, 118, 130, 130]

SPECIAL_60M = {
Expand Down
4 changes: 2 additions & 2 deletions chirp/drivers/ft857.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FT857Radio(ft817.FT817Radio):
list(CROSS_MODES.keys()))))

_memsize = 7341
# block 9 (140 Bytes long) is to be repeted 40 times
# block 9 (140 Bytes long) is to be repeated 40 times
# should be 42 times but this way I can use original 817 functions
_block_lengths = [2, 82, 252, 196, 252, 196, 212, 55, 140, 140, 140,
38, 176]
Expand Down Expand Up @@ -1116,7 +1116,7 @@ class FT857USRadio(FT857Radio):
_model = ""
_US_model = True
_memsize = 7481
# block 9 (140 Bytes long) is to be repeted 40 times
# block 9 (140 Bytes long) is to be repeated 40 times
# should be 42 times but this way I can use original 817 functions
_block_lengths = [2, 82, 252, 196, 252, 196, 212, 55, 140, 140, 140, 38,
176, 140]
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ft90.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def get_memory(self, number):
mem.skip = _mem.skip and "S" or ""
if not all(char in chirp_common.CHARSET_ASCII
for char in str(_mem.name)):
# dont display blank/junk name
# don't display blank/junk name
mem.name = ""
else:
mem.name = str(_mem.name).rstrip()
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ftlx011.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def get_raw_memory(self, number):
return repr(self._memobj.memory[number])

def _decode_tone(self, mem, rx=True):
"""Parse the tone data to decode from mem tones are encodded like this
"""Parse the tone data to decode from mem tones are encoded like this
CTCS: mapped [0x80...0xa5] = [67.0...250.3]
DTCS: mixed [0x88, 0x23] last is BCD and first is the 100 power - 88
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ftm350.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
TMODES = ["", "Tone", "TSQL", "", "DTCS", "", ""]
MODES = ["FM", "AM", "NFM", "", "WFM"]
DUPLEXES = ["", "", "-", "+", "split"]
# TODO: add japanese characters (viewable in special menu, scroll backwards)
# TODO: add Japanese characters (viewable in special menu, scroll backwards)
CHARSET = \
('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!"' +
'#$%&`()*+,-./:;<=>?@[\\]^_`{|}~?????? ' + '?' * 91)
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ic2300.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# +------------| GND |
# `------------------'
#
# D1: 1N4148 shottky diode
# D1: 1N4148 Schottky diode
# R1: 10K ohm resistor

MEM_FORMAT = """
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ic2730.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def myset_bitmask(setting, obj, ndx, atrb, knt):
other.append(rset)

rx = RadioSettingValueBoolean(bool(_sets.toneburst))
rset = RadioSetting("settings.toneburst", "1750 Htz Tone Burst", rx)
rset = RadioSetting("settings.toneburst", "1750 Hz Tone Burst", rx)
other.append(rset)

rx = RadioSettingValueBoolean(bool(_sets.ifxchg))
Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/iradio_uv_5118plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def do_upload(radio):
status.cur = 0
status.max = radio._memsize

# The OEM software reads the 1st block from the radio before comencing
# The OEM software reads the 1st block from the radio before commencing
# with the upload. That behavior will be mirrored here.
_read_block(radio, radio.START_ADDR, radio.BLOCK_SIZE)

Expand Down
6 changes: 3 additions & 3 deletions chirp/drivers/kenwood_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ def get_id(ser):
resp = command(ser, "ID")
except UnicodeDecodeError:
# If we got binary here, we are using the wrong rate
# or not talking to a kenwood live radio.
# or not talking to a Kenwood live radio.
continue

# most kenwood radios
# most Kenwood radios
if " " in resp:
LAST_BAUD = i
return resp.split(" ")[1]
Expand Down Expand Up @@ -169,7 +169,7 @@ def iserr(result):


class KenwoodLiveRadio(chirp_common.LiveRadio):
"""Base class for all live-mode kenwood radios"""
"""Base class for all live-mode Kenwood radios"""
BAUD_RATE = 9600
VENDOR = "Kenwood"
MODEL = ""
Expand Down
6 changes: 3 additions & 3 deletions chirp/drivers/kg935g.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def sync_out(self):
# It would be smarter to only load the active areas and none of
# the padding/unused areas. Padding still need to be investigated.
def _download(self):
"""Talk to a wouxun KG-935G and do a download"""
"""Talk to a Wouxun KG-935G and do a download"""
try:
self._identify()
return self._do_download(0, 32768, 64)
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def _do_download(self, start, end, blocksize):
return memmap.MemoryMapBytes(image)

def _upload(self):
"""Talk to a wouxun KG-935G and do a upload"""
"""Talk to a Wouxun KG-935G and do a upload"""
try:
self._identify()
self._do_upload()
Expand Down Expand Up @@ -2006,7 +2006,7 @@ def apply_ani_id(setting, obj):
# FM RADIO PRESETS

# memory stores raw integer value like 760
# radio will divide 760 by 10 and interpret correctly at 76.0Mhz
# radio will divide 760 by 10 and interpret correctly at 76.0MHz
for i in range(1, 21):
chan = str(i)
rs = RadioSetting("FM_radio" + chan, "FM Preset" + chan,
Expand Down
Loading

0 comments on commit c2e6518

Please sign in to comment.