On Mon, Aug 21, 2017 at 10:06 AM, Dan Smith via chirp_devel chirp_devel@intrepid.danplanet.com wrote:
Would someone possibly give me a rough example. I added the following under the "def get_memory(self, number):" section thinking that would do the trick, put it appears to do nothing.
mem.immutable = ["freq"]
Yeah, that should do it. If not, the UI might need a tweak to honor it or something.
There are several drivers use this method. Most don't have test drivers but the one or two that I found don't seem to honor it. I wonder if a change to the UI broke some time ago?
In a pinch, just raise an exception in your driver if the frequency is different than you expect during a set_memory() operation. Alternately, you could just ignore what mem.freq is set to entirely.
I think I ignore the mem.freq for the BTech GMRS-V1. I was hoping to come up with a better way of doing it. I've got time to think about.
Thanks for you input, Dan.
Jim