アーボック

Dependencies:   mbed BMP180

Revision:
3:2b7006ab9646
Parent:
2:c2f8ff2de89e
Child:
4:0660f26617c8
--- a/main.cpp	Sat Dec 19 10:47:54 2020 +0000
+++ b/main.cpp	Sat Dec 19 11:58:00 2020 +0000
@@ -48,10 +48,9 @@
             avalt=sum/(float)r;
             xbee.printf("Altitude(m)\t:%.3f\n\r",avalt);
             xbee.printf("--------------------------------\n\r");
-            wait(3);
             break;
             n=0;
-    }
+    }wait(3);
         }
         while(1){
                 float y4,y5,y6,y7,y8,c,d;
@@ -87,9 +86,9 @@
                         break;
                         }
                 n=0;
-                wait(3);
-                }
-             }  
+            
+                }wait(3);
+             } 
 
    return 0;
    }