<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 10, 2013 at 8:08 PM, Jens J. <span dir="ltr"><<a href="mailto:kd4tjx@yahoo.com" target="_blank">kd4tjx@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[bj-uv55] initial channel editing support #1201<br>
patch attached.<br>
<br>
This is definately a UV-5R clone (in terms of architecture), but in a mobile form-factor. Therefore, there are several differences in terms of offsets of settings locations, id/band-range, etc in the memory map.<br>
<br>
I have made a few changes to the uv5r.py driver which I am hoping wont impact other covered models, but ask for some help in testing, as I do not have an UV-5R (or similar) to do regression tests against.<br>
<br>
Also, I'm trying to understand what to modify so that when opening a radio image file, it will recognize this image as being BJ-UV55.<br>
<br>
I assume this has something to do with header bytes, but it wasnt so clear to me reading over the code.<br>
<br>
I have also tried to simplify a few areas with list comprehension, like:<br>
<br>
<br>
- if "BFB" not in radio_version and "82" not in radio_version and "USA" not in radio_version:<br>
+ if not any(type in radio_version for type in ["BFB", "82", "USA", "BJ55"]):<br>
<br>
however, it appears to me these should be simplified further to something like:<br>
if radio._basetype not in radio_version:<br>
// make better use of _basetype!<br>
<br>
-Jens<br>
AF5MI<br></blockquote></div><br></div><div class="gmail_extra">Jens,<br></div><div class="gmail_extra">Email an .img file from the BJ55 for me to look at. Thanks<br></div><div class="gmail_extra"></div><div class="gmail_extra">
Jim KC9HI<br></div></div>