On Dec 29, 2015, at 1:02 PM, Tom Hayward tom@tomh.us wrote:
On Tue, Dec 29, 2015 at 8:44 AM, Joseph scanlan via chirp_devel chirp_devel@intrepid.danplanet.com wrote:
What I don't like is that the user can edit the offset with the duplex set to "", "+", or "-". IcomCIVRadio.set_memory silently drops the offset but the user's change is displayed until the next refresh.
Any corrections to my basic assumptions or suggestion on how leave the user less confused?
You need to handle these cases in your driver.
You can set rf.valid_duplexes = ["", "split"] so that only no offset and split are offered.
Alternatively, you could handle + and - such that is does the math and sets the appropriate transmit frequency in the radio. Many radios do this. Here's an example in the UV5R driver: http://chirp.danplanet.com/projects/chirp/repository/entry/chirp/drivers/uv5...
Tom KD7LXL
Changing the duplex is fine. It's the offset that the user is able to edit but not actually change. The IC-7000 stores offsets per band, not per memory.