removed wait with timer

Dependents:   Gaurd_Server2 Gaurd_Server

Fork of JPEGCamera by Hiroshi Yamaguchi

Revision:
2:f41e57318b6b
Parent:
1:27417b6a951d
--- a/JPEGCamera.cpp	Thu Nov 17 13:59:40 2011 +0000
+++ b/JPEGCamera.cpp	Sat Dec 27 23:48:39 2014 +0000
@@ -82,7 +82,10 @@
     char buf[4] = {0x56, 0x00, 0x26, 0x00};
     int ret = sendReceive(buf, sizeof buf, 4);
     if (ret == 4 && buf[0] == 0x76) {
-        wait(4.0);
+        //wait(4.0);
+        timer.start();
+        timer.reset();
+        while(timer.read()<=4);
         state = READY;
     } else {
         state = ERROR;