lib/rfbeam.rb in rfbeam-0.2.2 vs lib/rfbeam.rb in rfbeam-0.3.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
require 'rfbeam/kld7/commands'
require 'rfbeam/kld7/detection'
+require 'rfbeam/kld7/parameters'
require 'rfbeam/kld7/device_data'
require_relative 'rfbeam/version'
module RfBeam
class Error < StandardError
@@ -11,18 +12,18 @@
class K_ld7
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}*")
+ 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