John Greene / Mbed OS MAX30101_HR_SPO2

Dependencies:   MAX30101 max32630fthr

Fork of MAX30101_Demo_Plot_Algorithm by John Greene

Revision:
3:a580414c44ce
Parent:
2:54182d6a168f
Child:
4:14d1b87cd3c4
diff -r 54182d6a168f -r a580414c44ce main.cpp
--- a/main.cpp	Mon Aug 21 21:41:14 2017 +0000
+++ b/main.cpp	Tue Aug 22 14:09:19 2017 +0000
@@ -61,7 +61,8 @@
                     }
                 }
             }
-                    
+        
+        } else {        
             
             pc.printf("Something went wrong, check the I2C bus or power connections... \r\n");
             bLed = LED_OFF;
@@ -71,12 +72,10 @@
             {
                 rLed = !rLed;
                 wait(0.5);   
-            }
-            
-        }
+            } 
+        }  
         
-    }
-    
+    } 
 }