mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
10_ZWave.pm: fix negative numbers for meterResetToValue (Qubino-Feedback)
git-svn-id: https://svn.fhem.de/fhem/trunk@22773 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bf1251833e
commit
14244b3d52
@ -1855,7 +1855,8 @@ ZWave_meterSet($$)
|
||||
my %mtt = map { $_=>$cnt++ } grep { $_ !~ m/undef/ } @meter_type_text;
|
||||
return "$cmd parameters: {".join("|", sort keys %mtt)."} numeric-value"
|
||||
if(@p != 2 || !$mtt{$p[0]} || $p[1] !~ m/^-?[0-9]+$/);
|
||||
return ("", sprintf("05%02x%08x",(4<<5)|$mtt{$p[0]}, $p[1]));
|
||||
return ("", sprintf("05%02x",(4<<5)|$mtt{$p[0]}).
|
||||
substr(sprintf("%08x",$p[1]),-8));
|
||||
}
|
||||
return "Not Yet Implemented: $cmd";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user