Looks like a compiler bug, since it compiles okay if you use bytes in
stead of bits.

procedure gp2d02_read_pins(volatile byte in out pin1, volatile byte in
out pin2) is
    -- the logic is like this
    pin1 = low
    pin1 = high
    if pin2 == high then
        -- do something
    end if
end procedure

var volatile byte gp2d02_vin
var volatile byte gp2d02_vout

var volatile byte q

q = gp2d02_read_pins(gp2d02_vin, gp2d02_vout)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to