Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX30101 max32630fthr
Fork of MAX30101_Demo_Plot by
Diff: main.cpp
- 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
}
