What is the expected value of a hal_bit_t when true? I have just been caught out by the fact that a pin connected to parport.N.pin-10-in takes the values 0 for false and 0x40 for true. It is easy enough to allow for this in my code, now that I have noticed it, but I don't know how many times I have made the error of bit-shifting a bit-value. As I do most of my testing in halrun and/or with Mesa hardware I had not previously spotted this quirk.
-- atp The idea that there is no such thing as objective truth is, quite simply, wrong. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
