comparison main.c @ 122:30c2c3341a4a

fridge range is decicelcius
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Oct 2012 22:48:24 +0800
parents 45c051a7db82
children b2700c7e5492
comparison
equal deleted inserted replaced
121:45c051a7db82 122:30c2c3341a4a
33 #define SLEEP_COMPARE (32*TICK-1) 33 #define SLEEP_COMPARE (32*TICK-1)
34 34
35 #define VALUE_NOSENSOR 0x07D0 // 125 degrees 35 #define VALUE_NOSENSOR 0x07D0 // 125 degrees
36 #define VALUE_BROKEN 0x07D1 // 125.0625 36 #define VALUE_BROKEN 0x07D1 // 125.0625
37 37
38 #define FRIDGE_AIR_MIN_RANGE 3 38 // ranges are in decicelcius
39 #define FRIDGE_AIR_MAX_RANGE 3 39 #define FRIDGE_AIR_MIN_RANGE 30
40 #define FRIDGE_AIR_MAX_RANGE 30
40 #define OVERSHOOT_SCALE 1 41 #define OVERSHOOT_SCALE 1
41 42
42 #define BAUD 19200 43 #define BAUD 19200
43 #define UBRR ((F_CPU)/8/(BAUD)-1) 44 #define UBRR ((F_CPU)/8/(BAUD)-1)
44 45