2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

4Dis text bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@891 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-04-22 08:13:47 +00:00
parent 40495108b1
commit 4575f6656c

View File

@ -244,6 +244,7 @@ CUL_HM_Parse($$)
if($cmd eq "8002") { # Ack
if($shash->{cmdStack}) { # Send next msg from the stack
Log 1, "PopCmd:" . $shash->{cmdStack}->[0];
CUL_HM_SendCmd($shash, shift @{$shash->{cmdStack}}, 1, 1);
delete($shash->{cmdStack}) if(!@{$shash->{cmdStack}});
$shash->{lastStackAck} = 1;
@ -781,8 +782,7 @@ CUL_HM_Pair(@)
}
delete($hash->{cmdStack});
# delete($hash->{cmdStack}); # Why? Disables 4Dis text commands
if($stn ne "remote") {
CUL_HM_pushConfig($hash, $id, $src, 0, 0, "0201$idstr");
CUL_HM_SendCmd($hash, shift @{$hash->{cmdStack}}, 1, 1);
@ -846,6 +846,7 @@ CUL_HM_PushCmdStack($$)
my ($hash, $cmd) = @_;
my @arr = ();
$hash->{cmdStack} = \@arr if(!$hash->{cmdStack});
Log 1, "PushStack: $cmd";
push(@{$hash->{cmdStack}}, $cmd);
}