Changeset View
Changeset View
Standalone View
Standalone View
comms/chirp/files/patch-chirp_drivers_ft8100.py
- This file was added.
--- chirp/drivers/ft8100.py.orig 2020-02-14 00:35:52 UTC | |||||
+++ chirp/drivers/ft8100.py | |||||
@@ -175,7 +175,7 @@ class FT8100Radio(yaesu_clone.YaesuCloneModeRadio): | |||||
if _mem.duplex == DUPLEX.index("split"): | |||||
tx_freq = int(_mem.offset) * 1000 | |||||
- print self.VARIANT, number, tx_freq, mem.freq | |||||
+ print(self.VARIANT, number, tx_freq, mem.freq) | |||||
mem.offset = tx_freq - mem.freq | |||||
else: | |||||
mem.offset = int(_mem.offset) * 1000 | |||||
@@ -189,7 +189,7 @@ class FT8100Radio(yaesu_clone.YaesuCloneModeRadio): | |||||
if not self._memobj.enables[byte] & bit and number != 1: | |||||
mem.empty = True | |||||
- print 'R', self.VARIANT, number, _mem.baud9600 | |||||
+ print('R', self.VARIANT, number, _mem.baud9600) | |||||
return mem | |||||
@@ -270,7 +270,7 @@ class FT8100RadioUHF(FT8100Radio): | |||||
def _clone_out(radio): | |||||
try: | |||||
return __clone_out(radio) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
raise errors.RadioError("Failed to communicate with the radio: %s" % e) | |||||
@@ -291,7 +291,7 @@ def __clone_out(radio): | |||||
pos = 0 | |||||
for block in radio._block_lengths: | |||||
if os.getenv("CHIRP_DEBUG"): | |||||
- print "\nSending %i-%i" % (pos, pos + block) | |||||
+ print("\nSending %i-%i" % (pos, pos + block)) | |||||
out = radio.get_mmap()[pos:pos + block] | |||||
# need to chew byte-by-byte here or else we lose the ACK...not sure why | |||||
@@ -309,6 +309,6 @@ def __clone_out(radio): | |||||
pos += block | |||||
- print "Clone completed in %i seconds" % (time.time() - start) | |||||
+ print("Clone completed in %i seconds" % (time.time() - start)) | |||||
return True |