mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
70_PIONEERAVR: bugfix "R" were not deleted in INTERNAL PARTIAL
git-svn-id: https://svn.fhem.de/fhem/trunk@8960 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bbb5759b0b
commit
1b542fff72
@ -2260,8 +2260,13 @@ sub PIONEERAVR_checkConnection ($) {
|
|||||||
# we got a reply -> connection is good -> restore state
|
# we got a reply -> connection is good -> restore state
|
||||||
Log3 $name, 5, "PIONEERAVR $name: PIONEERAVR_checkConnection() --- state: ".$hash->{STATE}." restored to: ".$state;
|
Log3 $name, 5, "PIONEERAVR $name: PIONEERAVR_checkConnection() --- state: ".$hash->{STATE}." restored to: ".$state;
|
||||||
$hash->{STATE} = $state;
|
$hash->{STATE} = $state;
|
||||||
|
Log3 $name, 5, "PIONEERAVR $name: PIONEERAVR_checkConnection() --- connstate: ".dq($connState)." PARTIAL: ".dq($hash->{PARTIAL});
|
||||||
|
if ($connState =~ m/^R\r?\n?$/) {
|
||||||
|
Log3 $name, 5, "PIONEERAVR $name: PIONEERAVR_checkConnection() --- connstate=R -> do nothing: ".dq($connState)." PARTIAL: ".dq($hash->{PARTIAL});
|
||||||
|
} else {
|
||||||
$hash->{PARTIAL} .= $connState;
|
$hash->{PARTIAL} .= $connState;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (AttrVal($name, "checkConnection", "enable") eq "enable" ) {
|
if (AttrVal($name, "checkConnection", "enable") eq "enable" ) {
|
||||||
$hash->{helper}{nextConnectionCheck} = gettimeofday()+120;
|
$hash->{helper}{nextConnectionCheck} = gettimeofday()+120;
|
||||||
InternalTimer($hash->{helper}{nextConnectionCheck}, "PIONEERAVR_checkConnection", $hash, 0);
|
InternalTimer($hash->{helper}{nextConnectionCheck}, "PIONEERAVR_checkConnection", $hash, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user