[chirp_devel] [PATCH 1 of 8] [ft4] Sometimes channel names are not displayed correctly. Fixes: #7601
Bernhard Hailer
Wed Feb 5 22:26:11 PST 2020
# HG changeset patch
# User Bernhard Hailer <ham73tux at gmail.com>
# Date 1580879326 28800
# Tue Feb 04 21:08:46 2020 -0800
# Node ID 427edcaeed8ddbffc1fa17fe1c8af32c4f277899
# Parent 845362c4e800e71e2dc45bade6feefbd9ff96fb5
[ft4] Sometimes channel names are not displayed correctly. Fixes: #7601
When user programmed radio manually and added a name shorter than 8 characters, the remaining characters were filled with garbage on the Chirp UI. This was due to padding with 0x7F used by the Yaesu; the solution is to pad with 0x20 (space characters) instead.
diff --git a/chirp/drivers/ft4.py b/chirp/drivers/ft4.py
--- a/chirp/drivers/ft4.py
+++ b/chirp/drivers/ft4.py
@@ -1063,6 +1063,8 @@
y = obj[x]
if y == 0:
break
+ if y == 0x7F: # when programmed from VFO
+ y = 0x20
name += chr(y)
return name.rstrip()
More information about the chirp_devel
mailing list