def _filter(name):
filtered = ""
for char in str(name):
if char in chirp_common.CHARSET_ASCII:
filtered += char
else:
filtered += " "
return filtered
_msg = self._memobj.firmware_msg
if self._my_version() >= 299:
rs = RadioSetting("firmware_msg.line1", "Firmware version(read only)",
RadioSettingValueString(0, 7, _filter(_msg.line1)))
other.append(rs)
else:
rs = RadioSetting("firmware_msg.line2", "Firmware version(read only)",
RadioSettingValueString(0, 7, _filter(_msg.line2)))
other.append(rs)
Jim KC9HI