|
Re: Programming of Pneumatics
You will need to make 'latch' a static variable if you are defining it inside a function so that it will retain its value between calls to the function. If you declare it outside a function (global to the file), it is by default static. I would assume you would declare 'latch' inside the function, though.
|