Baud rate when supplied on the command line was not properly being converted to an integer.

bug/bundler_fix
Craig Smith 2017-01-22 18:15:27 -08:00
parent 198d6e00ff
commit 53dbd03b35
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ module ELM327HWBridgeRelay
'URIPATH' => "/"
}))
self.serial_port = @opts[:serial]
self.serial_baud = @opts[:baud]
self.serial_baud = @opts[:baud].to_i
self.serial_bits = 8
self.serial_stop_bits = 1
@operational_status = 0