fix bug then set devicename

This commit is contained in:
Marko Oldenburg 2018-01-16 13:56:21 +01:00
parent e1792c64a7
commit d4de562b89

View File

@ -47,7 +47,7 @@ use JSON;
use Blocking; use Blocking;
my $version = "1.99.40"; my $version = "1.99.41";
@ -349,7 +349,7 @@ sub XiaomiBTLESens_Set($$@) {
return "usage: devicename <name>" if( @args < 1 ); return "usage: devicename <name>" if( @args < 1 );
my $devicename = join( " ", @args ); my $devicename = join( " ", @args );
$handle = $XiaomiModels{$attr{$name}{model}}{devicename}; $value = XiaomiBTLESens_CreateDevicenameHEX(makeDeviceName($devicename)); $mod = 'write'; $handle = $XiaomiModels{$attr{$name}{model}}{devicename}; $value = XiaomiBTLESens_CreateDevicenameHEX(makeDeviceName($devicename));
} else { } else {
my $list = ""; my $list = "";