Port of Arduino Pixy Cmucam5 library

Dependents:   Robot_Control

Fork of pixy by Arcadie Cracan

Files at this revision

API Documentation at this revision

Comitter:
balsamfir
Date:
Sun Mar 13 14:23:33 2016 +0000
Parent:
7:57cbf91c2d46
Commit message:
Fixed block reading bug

Changed in this revision

Pixy.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 57cbf91c2d46 -r 6cd36ded7c4e Pixy.cpp
--- a/Pixy.cpp	Fri Mar 04 19:54:16 2016 +0000
+++ b/Pixy.cpp	Sun Mar 13 14:23:33 2016 +0000
@@ -70,16 +70,7 @@
 
         if (checksum == sum) blockCount++;
         else if (pc) pc->printf("cs error: csum: %d, sum: %d \n\r", checksum, sum);
-        
-        // Read in the next block type
-        w = m_link->getWord();
-        if (w == PIXY_START_WORD) {
-            type = PIXY_START_WORD;
-        } else if (w == PIXY_START_WORD_CC) {
-            type = PIXY_START_WORD_CC;
-        } else {
-            return blockCount;
-        }
+
     }
     return blockCount;
 }