diff -r f4b64aa848e1 -r 7ba4302a9999 examples/DS401_Slave_Gui/main.cpp --- a/examples/DS401_Slave_Gui/main.cpp Tue Oct 02 17:56:11 2007 +0200 +++ b/examples/DS401_Slave_Gui/main.cpp Tue Oct 02 17:57:16 2007 +0200 @@ -672,7 +672,7 @@ static int get_bit(UNS8 input, int bit) { - return input & (((UNS8)1) << bit) ? 1 : 0; + return input & (((UNS8)1) << bit-1) ? 1 : 0; } void MyFrame::Paint()