diff --git a/lib/apex/igate_tcp.rb b/lib/apex/igate_tcp.rb index 2356044af375717c32c60175ae6f58c8ee6a82e6..8d1130a48caf855d50d3d97468b0825376bb2fa7 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