untested but i figure i would change the following section...
Code:
PowerOn var bit
Initialize:
Clear ' Clear all memory
poweron = 1
High Power_LED ' Power Default = ON
low Auto_Led ' Auto Defualt = OFF
High Normal_LED ' Normal Default = ON
low Pursuit_LED ' Pursuit Default = ON
Start:
If Power = 1 Then Power_Pressed
If poweron = 1 then' Execute only if in ON state
If Normal = 1 Then Normal_Pressed ' Normal button pressed?
If Pursuit = 1 Then Pursuit_Pressed ' Pursuite button Pressed?
If Auto = 1 then auto_pressed ' Auto button pressed
endif
Goto Start ' Loop forever '
'
'
'
'
'
'
'
'
'
Power_Pressed:
If poweron = 1 Then
Low Power_LED ' Turn off Power LED
Low Auto_LED ' Turn off Auto LED
Low Normal_LED ' Turn off Normal LED
low Pursuit_LED ' Turn off Pursuit LED
poweron=0
pause 1000 ' 1 second debounce delay
ELSE
High Power_LED ' Turn on Power_LED
High Normal_LED ' Turn on Normal_LED
poweron=1
Pause 1000 ' 1 Second Debounce delay
endif
Goto Start
deuh.. looks the same thing you've done... weird... it has to work.
Last edited by mister_e; - 19th November 2007 at 23:26.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks