Techshop JAPANのボランティアリフロープログラムです。誰か改造して

Fork of MAX31855 by Joe Staton

Revision:
2:288b09dbc34c
Parent:
1:5eeee89cb281
--- a/max31855.cpp	Tue Oct 23 10:51:21 2012 +0000
+++ b/max31855.cpp	Tue Feb 21 11:24:31 2017 +0000
@@ -61,9 +61,12 @@
             value = (tempProbeHigh<< 6 | tempProbeLow>>2);
     
             //Get actual temperature (last 2 bits of integer are decimal 0.5 and 0.25)
+            //temp = (value*0.15);
             temp = (value*0.25); // Multiply the value by 0.25 to get temp in C or
                              //  * (9.0/5.0)) + 32.0;   // Convert value to F (ensure proper floats!)
-                             
+            if(temp > 2500){
+                temp = 0;
+            }  
             return temp;
         }
     }else{