Hi Dave, don't know where to report.
in Moka1.0.1, S7.java, line 69, mask is wrong:
public static boolean GetBitAt(byte[] Buffer, int Pos, int Bit) { int Value = Buffer[Pos] & 0x0FF; byte[] Mask = { (byte)0x01,(byte)0x02,(byte)0x04,(byte)0x08, (byte)0x10,(byte)0x10,(byte)0x40,(byte)0x80 }; if (Bit<0) Bit=0; if (Bit>7) Bit=7; return (Value & Mask[Bit])!=0; }
So bit 5 from any byte is reading wrong value.
Regards.
Log in to post a comment.
Hi Dave, don't know where to report.
in Moka1.0.1, S7.java, line 69, mask is wrong:
So bit 5 from any byte is reading wrong value.
Regards.