comparison simple_ds18b20.c @ 419:a60a015732ea

Ignore 85ยบ setting too
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Oct 2012 20:12:23 +0800
parents a7e228609f20
children
comparison
equal deleted inserted replaced
418:1603d0310dd0 419:a60a015732ea
78 78
79 if ( negative ) { 79 if ( negative ) {
80 decicelsius = -decicelsius; 80 decicelsius = -decicelsius;
81 } 81 }
82 82
83 if ( /* decicelsius == 850 || */ decicelsius < -550 || decicelsius > 1250 ) { 83 if ( decicelsius == 850 || decicelsius < -550 || decicelsius > 1250 ) {
84 return DS18X20_INVALID_DECICELSIUS; 84 return DS18X20_INVALID_DECICELSIUS;
85 } else { 85 } else {
86 return decicelsius; 86 return decicelsius;
87 } 87 }
88 } 88 }