16 Aug
2019
16 Aug
'19
8:14 a.m.
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