SwingeyP
Member
This is driving me mad. This code worked but now for some reason it doesn't. The OSHON simulator just stops at the while button1 <> 0 line. The idea is to wait for the button to be released. Can anyone see anything wrong?
Symbol button1 = PORTB.0 'J18 - Pin 15'
start:
'--- RUN ---
If button1 = 1 Then
Gosub wait1off
'Gosub sendserial
Gosub runmenu
Goto finish
Endif
blah blah blah etc ......
wait1off:
While button1 <> 0
Wend
Return
Symbol button1 = PORTB.0 'J18 - Pin 15'
start:
'--- RUN ---
If button1 = 1 Then
Gosub wait1off
'Gosub sendserial
Gosub runmenu
Goto finish
Endif
blah blah blah etc ......
wait1off:
While button1 <> 0
Wend
Return