From 680b70ad0dba0a29d91b9c2b2ada135b9f84fa13 Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Sun, 13 Feb 2011 21:23:36 +0100 Subject: [PATCH] intercom: Send packet only once. --- temp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/temp.c b/temp.c index e1d13a5..e9bf188 100644 --- a/temp.c +++ b/temp.c @@ -241,8 +241,6 @@ void temp_sensor_tick() { case TT_INTERCOM: temp = read_temperature(temp_sensors[i].temp_pin); - start_send(); - temp_sensors_runtime[i].next_read_time = 0; break; @@ -277,6 +275,9 @@ void temp_sensor_tick() { } } } + #ifdef TEMP_INTERCOM + start_send(); + #endif } uint8_t temp_achieved() {