36_Vallox: Fixed MultiReading Issue

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21377 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Skjall 2020-03-08 12:18:37 +00:00
parent 566a0a08a0
commit 06d8f33700
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 36_Vallox: Fixed MultiReading Issue
- feature: 70_BRAVIA: add requestReboot (thx schnakker)
- change: 57_SSCal: commandref reviewed
- feature: 98_RandomTimer: Add offState attribute to e.g. evaluate state

View File

@ -5,7 +5,7 @@
#
# @Author Skjall
# @Created 21.07.2016 10:18:23
# @Version 1.6.1
# @Version 1.6.2
#
# The modul reads and writes parameters via RS485 from and to a Vallox
# ventilation bus.
@ -1734,7 +1734,7 @@ sub Vallox_Set($@) {
{
# TODO: Integrate get before set;
if ($hash->{ "MR_" . $Vallox_multiReadingTable_realcmd{$cmd} } ) {
if (!$hash->{ "MR_" . $Vallox_multiReadingTable_realcmd{$cmd} } ) {
return
"Vallox: Internal "
. $Vallox_multiReadingTable_realcmd{$cmd}
@ -1745,11 +1745,11 @@ sub Vallox_Set($@) {
. " first!";
}
$arg = Vallox_ReplaceBit(
$arg = sprintf("%02x", oct("0b".Vallox_ReplaceBit(
$hash,
$hash->{ "MR_" . $Vallox_multiReadingTable_realcmd{$cmd} },
$Vallox_multiReadingTable_digit{$cmd}, $arg
);
)));
$cmd = $Vallox_multiReadingTable_realcmd{$cmd};
}