From b19fd0eea4c62e5328da5bd6b593ba8d5e52b10d Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 26 Oct 2018 08:46:59 +0200 Subject: [PATCH] delete code --- 74_XiaomiBTLESens.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index 4b6508f..23b6937 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -888,13 +888,7 @@ sub ThermoHygroSensHandle0x10($$) { $notification =~ s/\s+//g; $readings{'temperature'} = pack( 'H*', substr( $notification, 4, 8 ) ); - -# if ( scalar(@numberOfHex) < 14 ) { - $readings{'humidity'} = pack( 'H*', substr( $notification, 18, 8 ) ); -# } -# else { -# $readings{'humidity'} = pack( 'H*', substr( $notification, 16, 8 ) ); -# } + $readings{'humidity'} = pack( 'H*', substr( $notification, 18, 8 ) ); $hash->{helper}{CallBattery} = 0; return \%readings;