# frozen_string_literal: true require 'rfbeam/kld7/radar_parameters' require 'rfbeam/kld7/radar_messages' require 'rfbeam/kld7/serial_connection' require 'rfbeam/kld7/constants' require 'rfbeam/kld7/cli_output' require 'rfbeam/kld7/cli_formatter' require 'rfbeam/version' require 'rfbeam/cli' module RfBeam class Error < StandardError end class KLD7 include RfBeam::Kld7 end def self.connected path_str, dir = if RubySerial::ON_LINUX %w[ttyUSB /dev/] elsif RubySerial::ON_WINDOWS ['TODO: Implement find device for Windows', 'You lazy bugger'] else %w[tty.usbserial /dev/] end Dir.glob("#{dir}#{path_str}*") end end