Cmera and GPS labrary

Dependents:   HEPTA_SENSOR HEPTA_SENSOR

Revision:
16:acef3a7f9597
Parent:
15:6e8a1e65ac52
Child:
17:b900397671a1
--- a/HeptaCamera_GPS.cpp	Fri Sep 08 07:16:14 2017 +0000
+++ b/HeptaCamera_GPS.cpp	Fri Sep 08 08:16:45 2017 +0000
@@ -610,22 +610,23 @@
     HeptaCamera_GPS::ErrorNumber err = HeptaCamera_GPS::NoError;
     printf("synchro setting now\r\n");
     err = sync();
-    int count=0;
+    int count = 0;
     while(err) {
         switch(count) {
             case 0:
                 printf("Connection of camera and mbed at baudrate 14400\r\n");
                 setmbedBaud(HeptaCamera_GPS::Baud14400);
-
+                count++;
                 break;
             case 1:
                 printf("Connection of camera and mbed at baudrate 115200\r\n");
                 setmbedBaud(HeptaCamera_GPS::Baud115200);
+                count++;
                 break;
             default:
                 count=0;
         }
-        count++;
+        //count++;
         err = sync();
         printf("synchro setting now\r\n");
         if(!err) {