When using "elif element._mutable:", it get the following.
Sorry, I'm firing from the hip here and not looking at the real code and testing.
Pavel's method does work, but I see what you are wanting to do Dan.
Yeah, but it's too specific, IMHO. Any immutable elements shouldn't be re-set on the image.
That would all new elements that have mutable set to False to be supported without needing to alter this section of code any further. I would like to see about make yours work.
Try this:
diff -r 9752a42d4a0d chirp/drivers/uv5r.py --- a/chirp/drivers/uv5r.py Mon Feb 08 14:14:28 2016 +0000 +++ b/chirp/drivers/uv5r.py Sun Feb 14 07:53:08 2016 -0800 @@ -1574,7 +1574,7 @@ if element.has_apply_callback(): LOG.debug("Using apply callback") element.run_apply_callback() - else: + elif element.value.get_mutable(): LOG.debug("Setting %s = %s" % (setting, element.value)) setattr(obj, setting, element.value) except Exception, e:
--Dan