diff main.c @ 136:2b112f9ab440

fix wrong eeprom tpes
author Matt Johnston <matt@ucc.asn.au>
date Mon, 22 Oct 2012 21:08:11 +0800
parents 405785632c78
children 08adc1fa02e8
line wrap: on
line diff
--- a/main.c	Sun Oct 14 21:52:09 2012 +0800
+++ b/main.c	Mon Oct 22 21:08:11 2012 +0800
@@ -86,7 +86,7 @@
 static uint8_t wake_secs = 30;
 // decidegrees
 static int16_t fridge_setpoint = 180; // 18.0ºC
-static int16_t fridge_difference = 3; // 0.3ºC
+static uint16_t fridge_difference = 3; // 0.3ºC
 static uint16_t fridge_delay = 600; // seconds
 
 // ---- Atomic guards required accessing these variables
@@ -162,7 +162,7 @@
     uint8_t wake_secs;
 
     int16_t fridge_setpoint; // decidegrees
-    uint8_t fridge_difference; // decidegrees
+    uint16_t fridge_difference; // decidegrees
     uint16_t fridge_delay;
 
 #if 0