Library for LinkSprite Y201 JPEG serial camera.
Diff: Y201.cpp
- Revision:
- 1:30a6aeda21c2
- Parent:
- 0:4c0fca059a0a
- Child:
- 2:7d8a6087f2e5
diff -r 4c0fca059a0a -r 30a6aeda21c2 Y201.cpp --- a/Y201.cpp Sat Jun 02 11:47:56 2012 +0000 +++ b/Y201.cpp Sat Jun 02 13:13:52 2012 +0000 @@ -63,7 +63,7 @@ bool Y201::waitForInt(int bytes, int *fileSize) { int spos = 0; - long timeout = 100000000; + long timeout = 1000000000; long timer = 0; *fileSize = 0; while(spos<bytes) { @@ -81,7 +81,7 @@ if(timer<timeout) { timer++; } else { - return -1; + return false; } } }