comparison simple_ds18b20.c @ 120:295a4b875677

Ignore 85ยบ setting too
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Oct 2012 20:12:23 +0800
parents 90d1ebb941ab
children
comparison
equal deleted inserted replaced
119:81591bdfa92c 120:295a4b875677
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 }