diff --git a/firmware/cup.c b/firmware/cup.c index f39770f..f755b29 100644 --- a/firmware/cup.c +++ b/firmware/cup.c @@ -16,7 +16,7 @@ #define LED_GREEN_TEMP 300 //#define LED_RED_TEMP 1000 -#define LED_RED_TEMP 800 +#define LED_RED_TEMP 850 #define TARGET_TEMP_MIN 300 #define TARGET_TEMP_MAX 1050 @@ -134,13 +134,13 @@ ISR(PCINT0_vect) inline uint8_t control_output(void) { - if(temperature > target) + if(temperature - 50 > target) { return 0; } - else if(temperature + 100 > target) + else if(temperature + 50 > target) { - return (target - temperature) * 192 / 100; + return (target - temperature + 50) * 240 / 100; } else {