doppler shift / Mbed 2 deprecated calsat32_5

Dependencies:   mbed

Revision:
1:fec69401b978
Parent:
0:c5c02975ae0c
Child:
2:43801dc371d0
--- a/main.cpp	Fri Dec 11 08:24:02 2020 +0000
+++ b/main.cpp	Fri Dec 11 08:56:41 2020 +0000
@@ -6,6 +6,8 @@
 void doppler(){
     while(1){
         char c = device.getc();
+        if(c == 0x00)
+        ;
         if(c == 0xfd){
             break;
             }
@@ -23,19 +25,16 @@
         char c = device.getc();
 
         if(c == 0xfe) {
-            //pc.printf("%02hhx ",c);
+            
             while(1) {
                 c = device.getc();
                 if(c  == 0x00){
-                    //pc.printf("%02hhx\r\n ",c);
+                    
                     doppler();
                     printf("\r\n");
                     break;
                     }
-                else{
-                    //pc.printf("%02hhx ",c);
-                    
-                }
+            
             }
         }
     }