I have an optocoupler input in my jeenode and that works now for months. But after upgrading to Arduino 1.0.1 (same lastest jeelib library) i have a weird problem.
I have the following code:
int optoPort1Tmp = optoIn.digiRead();
With arduino 1.0 it returns always a 1, and thats correct.
With arduino 1.0.1 it randomy generates a 1 or 0, and thats not correct.
You can easily test this without optocoupler with the attached code. The first 5 or 6 reads are correct, then its generate randomly a fault value.