intercom: Send packet only once.

This commit is contained in:
Markus Amsler 2011-02-13 21:23:36 +01:00 committed by Michael Moon
parent b7f84a1812
commit 680b70ad0d
1 changed files with 3 additions and 2 deletions

5
temp.c
View File

@ -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() {