Manuel Caballero / SI7006

Files at this revision

API Documentation at this revision

Comitter:
mcm
Date:
Mon Feb 05 12:55:05 2018 +0000
Parent:
4:57ca557b109d
Commit message:
All temperature functions were fixed, now it works as expected.

Changed in this revision

SI7006.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 57ca557b109d -r 492df2322044 SI7006.cpp
--- a/SI7006.cpp	Mon Feb 05 12:26:45 2018 +0000
+++ b/SI7006.cpp	Mon Feb 05 12:55:05 2018 +0000
@@ -375,7 +375,7 @@
     if ( ( cmd[1] & 0x02 )  ==  0x00 ) {
         // Parse the data
         myTemperature->Temperature   =   ( ( cmd[0] << 8 ) | cmd[1] );
-        myTemperature->Temperature  *=   172.72;
+        myTemperature->Temperature  *=   175.72;
         myTemperature->Temperature  /=   65536.0;
         myTemperature->Temperature  -=   46.85;
     } else