From 93589cc4544d3a37d6792fd579b9dfa85e845084 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Mon, 6 Sep 2021 18:35:25 -0400 Subject: [PATCH] Removed call to map on strings breaking the IGate. --- lib/apex/igate_tcp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/apex/igate_tcp.rb b/lib/apex/igate_tcp.rb index 2356044..8d1130a 100644 --- a/lib/apex/igate_tcp.rb +++ b/lib/apex/igate_tcp.rb @@ -84,7 +84,7 @@ module Apex @server = server @port = port @aprsis_sock = TCPSocket.open(@server, @port) - @aprsis_sock.puts( (@full_auth + '\r\n').map{ |c| c.ord } ) + @aprsis_sock.puts( @full_auth + '\r\n' ) end end end @@ -155,7 +155,7 @@ module Apex def write(frame, *args, **kwargs) @lock.synchronize do encoded_frame = IGateTcp::encode_frame(frame) - @aprsis_sock.puts( encoded_frame.map { |c| c.ord } ) + @aprsis_sock.puts( encoded_frame ) end end end -- GitLab