fix warning Illegal hexadecimal digit ' ' ignored
This commit is contained in:
parent
80db5b35f6
commit
dfb3e9e1a3
@ -35,7 +35,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "2.4.2";
|
my $version = "2.4.3";
|
||||||
|
|
||||||
sub XiaomiBTLESens_Initialize($) {
|
sub XiaomiBTLESens_Initialize($) {
|
||||||
|
|
||||||
@ -860,6 +860,7 @@ sub ThermoHygroSensHandle0x18($$) {
|
|||||||
Log3 $name, 4, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18";
|
Log3 $name, 4, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18";
|
||||||
|
|
||||||
chomp($notification);
|
chomp($notification);
|
||||||
|
$notification =~ s/ //g;
|
||||||
|
|
||||||
### neue Vereinheitlichung für Batteriereadings Forum #800017
|
### neue Vereinheitlichung für Batteriereadings Forum #800017
|
||||||
$readings{'batteryPercent'} = hex( "0x" . $notification );
|
$readings{'batteryPercent'} = hex( "0x" . $notification );
|
||||||
|
Loading…
Reference in New Issue
Block a user