mirror of https://github.com/arendst/Tasmota.git
refactor tm1621
This commit is contained in:
parent
9c06a3713e
commit
3a1bbda4a5
|
@ -242,9 +242,8 @@ float TM1621GetTemperatureValues(uint32_t index) {
|
||||||
if (data) {
|
if (data) {
|
||||||
idx++;
|
idx++;
|
||||||
data += 13; // strlen("Temperature") + 2;
|
data += 13; // strlen("Temperature") + 2;
|
||||||
float new_value = CharToFloat(data);
|
|
||||||
if (idx == index) {
|
if (idx == index) {
|
||||||
value = new_value;
|
value = CharToFloat(data);
|
||||||
if (Tm1621.temp_sensors) {
|
if (Tm1621.temp_sensors) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue