[chirp_devel] [h777] Enable sidekey configuration for Radioddity GA-2S

Dan Smith
Fri Aug 16 08:14:34 PDT 2019


> I am open to suggestions on the global variable hack. If more of these
> variables were inside a class then it would be trivial to update it in
> the __init__() method using self.SIDEKEYFUNCTION_LIST

Yeah, just move that list definition into the parent class, and override it in the appropriate subclass. Minimizing impact to existing code is good, but do as much as you need to make it _right_ :) You definitely can't modify the global, because if I'm using two radios together, one of which is a GA-2S, after I've used the driver to work with it, it's broken until restart for another variant :)

--Dan


More information about the chirp_devel mailing list