intercom: Send packet only once.
This commit is contained in:
parent
b7f84a1812
commit
680b70ad0d
5
temp.c
5
temp.c
|
|
@ -241,8 +241,6 @@ void temp_sensor_tick() {
|
||||||
case TT_INTERCOM:
|
case TT_INTERCOM:
|
||||||
temp = read_temperature(temp_sensors[i].temp_pin);
|
temp = read_temperature(temp_sensors[i].temp_pin);
|
||||||
|
|
||||||
start_send();
|
|
||||||
|
|
||||||
temp_sensors_runtime[i].next_read_time = 0;
|
temp_sensors_runtime[i].next_read_time = 0;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
@ -277,6 +275,9 @@ void temp_sensor_tick() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef TEMP_INTERCOM
|
||||||
|
start_send();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t temp_achieved() {
|
uint8_t temp_achieved() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue