Project

General

Profile

Actions

Bug #7339

closed

Failure when uploading to TK-8180

Added by Paul Schmidt almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/21/2019
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
TK-8180
Platform:
Linux
Debug Log:
I read the instructions above:

Description

Chirp daily-20191110 (seen on Linux and Windows) fails when uploading to th-8180.

ERROR: General failure
Traceback (most recent call last):
File "/home/paul/Chirp/chirp-daily-20191110/chirp/drivers/tk8180.py", line 416, in sync_out
do_upload(self)
File "/home/paul/Chirp/chirp-daily-20191110/chirp/drivers/tk8180.py", line 355, in do_upload
status(addr)
File "/home/paul/Chirp/chirp-daily-20191110/chirp/drivers/tk8180.py", line 338, in status
LOG.debug('Radio address 0x%04x' % len(data))
NameError: global name 'data' is not defined
ERROR: -- Exception: --
ERROR: Traceback (most recent call last):
File "/home/paul/Chirp/chirp-daily-20191110/chirp/ui/clone.py", line 254, in run
self.__radio.sync_out()
File "/home/paul/Chirp/chirp-daily-20191110/chirp/drivers/tk8180.py", line 420, in sync_out
raise errors.RadioError('Failed to upload to radio: %s' % e)
RadioError: Failed to upload to radio: global name 'data' is not defined

ERROR: ----------------
ERROR: Clone failed: Failed to upload to radio: global name 'data' is not defined
ERROR: --- Exception Dialog: Failed to upload to radio: global name 'data' is not defined ---
ERROR: None

ERROR: ----------------------------

Changing line fixes it

--- chirp-daily-20191110/chirp/drivers/tk8180.py 2019-07-13 03:00:15.000000000 -0400
+++ chirp-daily-20191110fixed/chirp/drivers/tk8180.py 2019-11-14 16:41:09.177710945 -0500
@@ -335,7 +335,7 @@
status.max = radio._memsize
status.msg = "Cloning to radio"
radio.status_fn(status)

  • LOG.debug('Radio address 0x%04x' % len(data))
  •    LOG.debug('Radio address 0x%04x' % addr)
    

    for block in range(0, 0xBF + 1):
    addr = block * 0x100

If I can get my hg going, I'll commit the change, If someone else does it first, I'm fine with it :-)

Actions

Also available in: Atom PDF