From b5d420bfd2adac1169671c0e1f0d8328596088b7 Mon Sep 17 00:00:00 2001 From: H Plato Date: Sun, 13 Sep 2015 13:27:09 -0600 Subject: [PATCH] Fixed crash when writing to the serial port --- lib/AD2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/AD2.pm b/lib/AD2.pm index c5edcfa15..2d2e686cf 100755 --- a/lib/AD2.pm +++ b/lib/AD2.pm @@ -1136,7 +1136,7 @@ sub cmd { } } else { - $main::Serial_Ports{$instance}{'socket'}->write("$CmdStr"); + $main::Serial_Ports{$instance}{object}->write("$CmdStr"); } return "Sending to ADEMCO panel: $CmdName ($cmd)"; } @@ -1909,4 +1909,4 @@ You should have received a copy of the GNU General Public License along with thi =cut -1; \ No newline at end of file +1;