Skip to content

Commit

Permalink
Add SerialPort data bits, parity, and stop bits configuration (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlindn authored Aug 26, 2024
1 parent adb9ed8 commit cac7da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bwa/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def initialize(uri)
@queue = []
else
require "ccutrer-serialport"
@io = CCutrer::SerialPort.new(uri.path, baud: 115_200)
@io = CCutrer::SerialPort.new(uri.path, baud: 115_200, data_bits: 8, parity: :none, stop_bits: 1)
@queue = []
end
@src = 0x0a
Expand Down

0 comments on commit cac7da9

Please sign in to comment.