aromring / MAX30102_by_RF

Arduino C code for MAX30102 pulse oximetry sensor (MAXIM Integrated, Inc.)
166 stars 73 forks source link

Revert "perf: Only use Red & IR arrays from function param" #38

Closed aromring closed 2 years ago

aromring commented 2 years ago

Reverts aromring/MAX30102_by_RF#37 I have accepted the changes too soon. My bad. In fact, other functions in other parts of the code still use uint32_t incompatible with float. For example, maxim_max30102_read_fifo() in max30102.cpp or the original MAXIM algorithm in algorithm.cpp.

0xMihir commented 2 years ago

I used the Sparkfun library that could read into a float buffer. I'll try testing this code.