Advertisement
Guest User

Untitled

a guest
Nov 19th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. diff --git a/lib/python/pyvcp_widgets.py b/lib/python/pyvcp_widgets.py
  2. index acf190d..c2b97b5 100644
  3. --- a/lib/python/pyvcp_widgets.py
  4. +++ b/lib/python/pyvcp_widgets.py
  5. @@ -589,6 +589,10 @@ class pyvcp_radiobutton(Frame):
  6. self.halpins.append(c_halpin)
  7. n+=1
  8.  
  9. +
  10. + self.indexpin=halpin+".index"
  11. + pycomp.newpin(self.indexpin, HAL_U32, HAL_OUT)
  12. +
  13. # FIXME
  14. # this is a fairly stupid way of updating the pins
  15. # since the calculation is done every 100ms wether a change
  16. @@ -599,6 +603,7 @@ class pyvcp_radiobutton(Frame):
  17. for pin in self.halpins:
  18. pycomp[pin]=0;
  19. pycomp[self.halpins[index]]=1;
  20. + pycomp[self.indexpin] = index
  21.  
  22. # FIXME
  23. # this would be a much better way of updating the
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement