Ivan Stoev / HeptaCamera_GPS

Dependents:   3daf572bcae1 Team Team01_HEPTA_Trainig

Fork of HeptaCamera_GPS by HEPTA-Sat Training 2017~2018

Files at this revision

API Documentation at this revision

Comitter:
HEPTA
Date:
Fri Sep 08 08:16:45 2017 +0000
Parent:
15:6e8a1e65ac52
Child:
17:a30fa71eddb7
Commit message:
Hepta Camera(revision);

Changed in this revision

HeptaCamera_GPS.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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) {