Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/python/pyvcp_widgets.py b/lib/python/pyvcp_widgets.py
- index acf190d..c2b97b5 100644
- --- a/lib/python/pyvcp_widgets.py
- +++ b/lib/python/pyvcp_widgets.py
- @@ -589,6 +589,10 @@ class pyvcp_radiobutton(Frame):
- self.halpins.append(c_halpin)
- n+=1
- +
- + self.indexpin=halpin+".index"
- + pycomp.newpin(self.indexpin, HAL_U32, HAL_OUT)
- +
- # FIXME
- # this is a fairly stupid way of updating the pins
- # since the calculation is done every 100ms wether a change
- @@ -599,6 +603,7 @@ class pyvcp_radiobutton(Frame):
- for pin in self.halpins:
- pycomp[pin]=0;
- pycomp[self.halpins[index]]=1;
- + pycomp[self.indexpin] = index
- # FIXME
- # this would be a much better way of updating the
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement