00_TCM: routine TCM_InitSerialCom($) changed

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12308 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus-schauer 2016-10-10 05:24:16 +00:00
parent b6bdbb2934
commit 90f91a94eb

View File

@ -111,6 +111,7 @@ TCM_InitSerialCom($)
my $setCmdVal = "";
my @setCmd = ("set", "reset", $setCmdVal);
# read and discard receive buffer, modem reset
$hash->{PARTIAL} = '';
if ($hash->{MODEL} eq "ESP2") {
if ($comType eq "TCM") {
TCM_ReadAnswer($hash, "set reset");