Skip to content

Commit 9528fce

Browse files
Initialization of temperature value. Fixed
1 parent e34f4f0 commit 9528fce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/SuplaDevice/SuplaDevice.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ bool SuplaDeviceClass::begin(IPAddress *local_ip, char GUID[SUPLA_GUID_SIZE], ui
293293
setString(Params.reg_dev.Name, "ARDUINO", SUPLA_DEVICE_NAME_MAXSIZE);
294294
}
295295

296-
setString(Params.reg_dev.SoftVer, "1.6", SUPLA_SOFTVER_MAXSIZE);
296+
setString(Params.reg_dev.SoftVer, "1.6.1", SUPLA_SOFTVER_MAXSIZE);
297297

298298
Params.cb.eth_setup(Params.mac, Params.use_local_ip ? &Params.local_ip : NULL);
299299

@@ -355,8 +355,7 @@ void SuplaDeviceClass::begin_thermometer(SuplaChannelPin *pin, TDS_SuplaDeviceCh
355355
&& Params.cb.get_temperature != NULL ) {
356356

357357
pin->last_val_dbl1 = Params.cb.get_temperature(channel_number, pin->last_val_dbl1);
358-
setDoubleValue(channel->value, channel_number);
359-
358+
channelSetDoubleValue(channel_number, pin->last_val_dbl1);
360359

361360
} else if ( ( channel->Type == SUPLA_CHANNELTYPE_DHT11
362361
|| channel->Type == SUPLA_CHANNELTYPE_DHT22

0 commit comments

Comments
 (0)