46_TRX_WEATHER.pm: Maverick ET732,733 changed: do not update reading if sensor is not attached.

git-svn-id: https://svn.fhem.de/fhem/trunk@10798 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2016-02-11 22:29:43 +00:00
parent 04b83fd83e
commit 1dbec06605

View File

@@ -117,6 +117,8 @@ use warnings;
# Hex-Debugging into READING hexline? YES = 1, NO = 0
my $TRX_HEX_debug = 0;
# Max temperatute für Maverick BBQ
my $TRX_MAX_TEMP_BBQ = 1000;
my $time_old = 0;
my $trx_rssi;
@@ -244,6 +246,8 @@ sub TRX_WEATHER_temperature_food {
my $temp = $bytes->[$off]*256 + $bytes->[$off+1];
return if ($temp > $TRX_MAX_TEMP_BBQ);
push @$res, {
device => $dev,
type => 'temp-food',
@@ -258,6 +262,8 @@ sub TRX_WEATHER_temperature_bbq {
my $temp = $bytes->[$off]*256 + $bytes->[$off+1];
return if ($temp > $TRX_MAX_TEMP_BBQ);
push @$res, {
device => $dev,
type => 'temp-bbq',