refactor tm1621

This commit is contained in:
Theo Arends 2022-08-28 18:22:06 +02:00
parent 9c06a3713e
commit 3a1bbda4a5
1 changed files with 1 additions and 2 deletions

View File

@ -242,9 +242,8 @@ float TM1621GetTemperatureValues(uint32_t index) {
if (data) {
idx++;
data += 13; // strlen("Temperature") + 2;
float new_value = CharToFloat(data);
if (idx == index) {
value = new_value;
value = CharToFloat(data);
if (Tm1621.temp_sensors) {
break;
}