Menu

Bug in S7.GetBitAt

2015-04-15
2015-04-15
  • Marco Schwarz

    Marco Schwarz - 2015-04-15

    Hi,

    in Moka7:

    public static boolean GetBitAt(byte[] Buffer, int Pos, int Bit)

    it should be

        byte[] Mask = {
            (byte)0x01,(byte)0x02,(byte)0x04,(byte)0x08,
            (byte)0x10,(byte)0x20,(byte)0x40,(byte)0x80
        };
    

    instead of

        byte[] Mask = {
            (byte)0x01,(byte)0x02,(byte)0x04,(byte)0x08,
            (byte)0x10,(byte)0x10,(byte)0x40,(byte)0x80
        };
    

    Best regards,
    Marco

     

    Last edit: Marco Schwarz 2015-04-15
  • Pablo Agirre

    Pablo Agirre - 2015-04-15

    Hi Marco,

    It's already fixed.

    https://sourceforge.net/p/snap7/discussion/bugfix/thread/c3818d42/
    
     
  • Marco Schwarz

    Marco Schwarz - 2015-04-15

    Hi Pablo,

    I forgot to mention that this is in Moka7 :) There does not seem to be a bugfix yet for the Java code.

     

Log in to post a comment.

MongoDB Logo MongoDB