fix bug then set devicename
This commit is contained in:
parent
e1792c64a7
commit
d4de562b89
@ -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 = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user