From f037bb53200023dec0dd185da503a304b50da611 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Fri, 17 Sep 2010 10:29:27 +1000 Subject: [PATCH] removed unused ABS_DELTA --- heater.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/heater.c b/heater.c index ab09ee3..57d92af 100644 --- a/heater.c +++ b/heater.c @@ -16,6 +16,7 @@ int16_t heater_d = 0; #define DEFAULT_I 512 #define DEFAULT_D -24576 #define DEFAULT_I_LIMIT 384 + int32_t p_factor = 0; int32_t i_factor = 0; int32_t d_factor = 0; @@ -30,10 +31,6 @@ int16_t EEMEM EE_i_limit; uint16_t temp_history[TH_COUNT] __attribute__ ((__section__ (".bss"))); uint8_t th_p = 0; -#ifndef ABSDELTA -#define ABSDELTA(a, b) (((a) >= (b))?((a) - (b)):((b) - (a))) -#endif - void heater_init() { p_factor = eeprom_read_dword((uint32_t *) &EE_p_factor); i_factor = eeprom_read_dword((uint32_t *) &EE_i_factor);