I have one doubt...
To calculate SPO2 you are using the equations:

But looking for TI docs (who you use as reference), we have:

Pay attention that the variable is R'.
Looking for TI .c code example (slaa468.zip):
[(http://www.ti.com/lit/zip/slaa458)]

I don't know, but I think that you mixed Rs. Because TI implementation no uses linear equation.
The equation used by you:

And R is:

Can you confirm, please, the font of the information:

I have one doubt...
To calculate SPO2 you are using the equations:
But looking for TI docs (who you use as reference), we have:
Pay attention that the variable is R'.
Looking for TI .c code example (slaa468.zip):

[(http://www.ti.com/lit/zip/slaa458)]
I don't know, but I think that you mixed Rs. Because TI implementation no uses linear equation.
The equation used by you:

And R is:

Can you confirm, please, the font of the information:
