fixed threshold in BLP network packet generation
Stefan Schuermans

Stefan Schuermans commited on 2011-11-14 21:47:56
Showing 3 changed files, with 6 additions and 2 deletions.

... ...
@@ -774,7 +774,7 @@ int BlinkenFrameToNetwork(stBlinkenFrame *pFrame, etBlinkenProto proto,
774 774
         for (c = 0; c < pFrame->channels; c++, j++)
775 775
           val += pFrame->ppData[y][j];
776 776
         pData[i] =
777
-            (val >= pFrame->channels * pFrame->maxval / 2 ? 0x01 : 0x00);
777
+            (val >= pFrame->channels * (pFrame->maxval + 1) / 2 ? 0x01 : 0x00);
778 778
       }
779 779
     }
780 780
     return i;   // return length
... ...
@@ -1,3 +1,7 @@
1
+0.6.9 2011-11-14
2
+----------------
3
+fixed threshold in BLP network packet generation
4
+
1 5
 0.6.8 2011-10-22
2 6
 ----------------
3 7
 adpations for usage in C++ code
... ...
@@ -1,5 +1,5 @@
1 1
 VERSION_MAJOR=0
2 2
 VERSION_MINOR=6
3
-VERSION_REVISION=8
3
+VERSION_REVISION=9
4 4
 VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_REVISION)
5 5
 
6 6