Library for LinkSprite Y201 JPEG serial camera.

Revision:
7:d7ed03291f0a
Parent:
5:df71c00b97d8
--- a/Y201.cpp	Wed Jul 18 11:06:49 2012 +0000
+++ b/Y201.cpp	Thu Jul 19 07:49:06 2012 +0000
@@ -30,14 +30,11 @@
             readBuffer[nread] = c;
             nread++;
             t.reset();
-         }
-         else
-         {
-           if(t.read_ms()>3000)
-           {
-             fprintf(stdout, "Blocked!\n Missed %d bytes over %d\nLast byte read is %02x\n", readLen - nread, readLen, readBuffer[nread-1]);
-             return false;
-           }
+         } else {
+            if(t.read_ms()>3000) {
+               fprintf(stdout, "Blocked!\n Missed %d bytes over %d\nLast byte read is %02x\n", readLen - nread, readLen, readBuffer[nread-1]);
+               return false;
+            }
          }
      }
      //Thread::wait(1);