Library for MAX30101 SpO2 and heart rate sensor

Dependents:   HeartRate HeartRate proj final_project_ee119 ... more

Files at this revision

API Documentation at this revision

Comitter:
j3
Date:
Sat Sep 02 11:00:44 2017 -0700
Parent:
7:ce122c27358e
Child:
9:28164e9ac58e
Commit message:
fixed [Warning] MAX30101.cpp@282,43: variable length array 'local_data' is used [-Wvla]

Changed in this revision

MAX30101.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MAX30101.cpp	Thu Jul 27 20:40:29 2017 +0000
+++ b/MAX30101.cpp	Sat Sep 02 11:00:44 2017 -0700
@@ -279,7 +279,7 @@
             }
             
             //temporary buffer for data
-            char local_data[m_fifoNumBytes];
+            char local_data[MAX30101::MAX_FIFO_BYTES];
             local_data[0] = FIFO_DataRegister;
             
             //Set fifo data ptr