Skip to content

Commit

Permalink
fixing parity which must be a number for gateway firmware > 2.5.2 (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrasko authored Feb 10, 2025
1 parent 0827a7a commit 93b16d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function tty_init()
SERIAL_OPTIONS = {
baud_rate = tonumber(baud_rate),
parity = tostring(parity),
stop_bits = tostring(stop_bits),
stop_bits = tonumber(stop_bits),
data_bits = 8,
read_timeout = 1000,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function tty_init()
SERIAL_OPTIONS = {
baud_rate = tonumber(baud_rate),
parity = tostring(parity),
stop_bits = tostring(stop_bits),
stop_bits = tonumber(stop_bits),
data_bits = 8,
read_timeout = 1000,
}
Expand Down

0 comments on commit 93b16d1

Please sign in to comment.