From dfb3e9e1a36f3a9d3f7361d55a3c8b86450ff501 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 23 Oct 2018 11:15:55 +0200 Subject: [PATCH] fix warning Illegal hexadecimal digit ' ' ignored --- 74_XiaomiBTLESens.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index cd6711c..ebaea1e 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -35,7 +35,7 @@ package main; use strict; use warnings; -my $version = "2.4.2"; +my $version = "2.4.3"; sub XiaomiBTLESens_Initialize($) { @@ -860,6 +860,7 @@ sub ThermoHygroSensHandle0x18($$) { Log3 $name, 4, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18"; chomp($notification); + $notification =~ s/ //g; ### neue Vereinheitlichung für Batteriereadings Forum #800017 $readings{'batteryPercent'} = hex( "0x" . $notification );