CPS-Lab1 / Mbed 2 deprecated Lab7

Dependencies:   MPL3115A2 mbed

Revision:
4:dd5899b3eb3b
Parent:
3:1238aecec770
--- a/main.cpp	Tue Mar 06 14:28:15 2018 +0000
+++ b/main.cpp	Fri Mar 09 16:46:27 2018 +0000
@@ -15,12 +15,12 @@
     pc.printf("starting program\n\r");
     
     
-    /* Prints out registrys 
+    //Prints out registrys 
     // Use for demo
     while(1) {
         mpl3115_reg_print(0,0);
     }
-    */
+    
     
     //Test is getID returns the correct value and we are getting good readings
     pc.printf("\n\r*** MPL3115A2 Pressure/Temperature Sensor Test *** \n\r");
@@ -61,7 +61,7 @@
                 }
             }
         }
-        wait_ms(500); // Half a minute is spent between each measure
+        wait_ms(500); // Half a second is spent between each measure
     }
 }   
 
@@ -113,7 +113,7 @@
     for (int i = start; i < end; i++) { 
         pressure_sensor.readRegs(i,&data,8);
         pc.printf("%#04x: %s=%#04x\n\r", i, regNames[i], data); // Print register
-        wait_ms(500);
+        wait_ms(50);
     } 
     return 0;
 }
\ No newline at end of file