John Greene / Mbed OS MAX30101_Demo_Plot

Dependencies:   MAX30101 max32630fthr

Fork of MAX30101_Demo_Plot by Central Applications - Mbed Code repo

Revision:
6:238d2eec53de
Parent:
5:2f708191f1bd
Child:
7:6075af57668e
--- a/main.cpp	Mon Aug 28 20:59:29 2017 +0000
+++ b/main.cpp	Tue Aug 29 20:32:39 2017 +0000
@@ -92,7 +92,7 @@
                         // Convert read bytes into samples
                         for(idx = 0; idx < readBytes; idx+=3) {
                             sample = (fifoData[idx]<<16) | (fifoData[idx+1]<<8) | (fifoData[idx+2]);
-                            opSample = sample >> 8;                         // Sign extends sample to 16-bit opSample
+                            opSample = sample >> 8;            // Sign extends sample to 16-bit opSample
                             pc.printf("%i\r\n", opSample);     // Print results
                         }