Quote Originally Posted by aratti View Post
Sorry should be:
if DownButton =0 then
If Vduty>0 then Vduty=Vduty-B0
Gosub HpwmSet
endif
You know you can EDIT your own posts right?
Look down by the QUOTE button after you've submitted your post.