<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="-1">Thanks Dan,<br>
<br>
I missed the legal_steps bug, indeed. Also found another issue
with addressing VFO memories, which needs fixing. While working on
the fixes, I'll convert the doc strings to comments.<br>
<br>
Please hold the patches until I got this straight - I might
actually go an entirely different way and prepare for more radios,
making the implementation of new radios in this driver easier.<br>
<br>
(Still have a problem with the test script not including added
radios such as the FT-25. But that's another thing I need to
figure out.)<br>
<br>
<br>
73,<br>
Bernhard<br>
</font><br>
<div class="moz-cite-prefix">On 28-Jan-20 09:57, Dan Smith via
chirp_devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:04EE503C-5DCC-4251-8A3A-7978F5501B27@danplanet.com">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">@@ -669,8 +677,6 @@
rf.has_dtcs_polarity = False # REV TN reverses the tone, not the dcs
rf.has_cross = True
rf.has_settings = True
- rf.valid_tuning_steps = self.legal_steps
-
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Here, you stop setting valid_tuning_steps, and thus stop looking at self.legal_steps. See below.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">+ """
+ First, we need to know whether a channel is enabled,
+ then we can process any channel parameters.
+ It was found (at least on an FT-25) that channels might be
+ uninitialized and memory is just completely filled with 0xFF.
+ """
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This is a docstring in python, and doesn't belong here despite being allowed. If you want to insert a comment, please use the comment prefix (#).
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">+ """
+ So, now if channel is not empty, we can do the evaluation of
+ all parameters. Otherwise we set them to defaults.
+ """
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Same here.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">@@ -1117,7 +1142,7 @@
# UHF, RX (400000000, 480000000)
]
_valid_chars = chirp_common.CHARSET_ASCII
- numblocks = 0x215 # number of 16-byte blocks in the radio
+ numblocks = 0x215 # number of 16-byte blocks in the radio
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This is non-functional noise in the patch, which we should try to avoid to keep the history clean.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">+@directory.register
+class YaesuFT25Radio(YaesuSC35GenericRadio):
+ MODEL = "FT-25R"
+ _basetype = BASETYPE_FT65
+ valid_bands = [
+ (65000000, 108000000), # broadcast FM, receive only
+ (144000000, 148000000), # VHF, US version, TX and RX
+ # VHF, RX (136000000, 174000000)
+ ]
+ _valid_chars = chirp_common.CHARSET_ASCII
+ numblocks = 0x215 # number of 16-byte blocks in the radio
+ _memsize = 16 * numblocks # used by CHIRP file loader to guess radio type
+ MAX_MEM_SLOT = 200
+ Pkeys = 4 # number of programmable keys on the FT-65
+ namelen = 8 # length of the mem name display on the FT-65 front panel
+ id_str = b'IFT-25R\x00\x00V100\x00\x00'
+ freq_offset_scale = 50000
+ legal_steps = US_LEGAL_STEPS
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Looks like you still expect legal_steps to be used, but you removed the reference above.
I was going to apply this despite the docstring thing because you have patches above and just ask you to fix the comments later. However, I'm not sure about the legal_steps thing, so let me know if I'm missing something and we can go from there.
Thanks!
--Dan
_______________________________________________
chirp_devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a>
<a class="moz-txt-link-freetext" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a>
Developer docs: <a class="moz-txt-link-freetext" href="http://chirp.danplanet.com/projects/chirp/wiki/Developers">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a>
</pre>
</blockquote>
<br>
</body>
</html>