From 417a614d69091cd2bb6702d6edd92af4735563d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Wed, 3 Oct 2012 23:26:38 +0200 Subject: [PATCH] better type for actual_dt --- reflowctl/reflowctl.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflowctl/reflowctl.ino b/reflowctl/reflowctl.ino index d2fcc2f..3eb37a3 100644 --- a/reflowctl/reflowctl.ino +++ b/reflowctl/reflowctl.ino @@ -19,7 +19,7 @@ __attribute__((__unused__)) static unsigned int time = 0; // profile seconds __attribute__((__unused__)) static unsigned int temperatur = 25; // actual oven temp __attribute__((__unused__)) static unsigned int last_temperatur = 25; // last oven temp -__attribute__((__unused__)) static unsigned int actual_dt = 0; // actual difference from last to actual temperatur +__attribute__((__unused__)) static int actual_dt = 0; // actual difference from last to actual temperatur // profile temperatures @@ -208,7 +208,7 @@ static void handle_ramp_up_state() { Serial.println("RAMP_UP_STATE"); if (temperatur > Tl) { Tl_time_start = time; - state++; + set_tal_first_state(); } }