Crash when mic gain turned all the way to 100
tonyc opened this issue · comments
Tony Collen commented
[info] [DN] "MG100"
[error] GenServer {:radio_connection_registry, {:tcp, "a7c79aac-8493-4018-a73e-7a5628a0009a"}} terminating
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a textual representation of an integer
:erlang.binary_to_integer("MG100")
(open890 0.0.0-dev) lib/open890/extract.ex:696: Open890.Extract.trim_to_integer/2
(open890 0.0.0-dev) lib/open890/radio_state.ex:112: Open890.RadioState.dispatch/2
(open890 0.0.0-dev) lib/open890/tcp_client.ex:309: Open890.TCPClient.handle_msg/2
(elixir 1.14.2) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(open890 0.0.0-dev) lib/open890/tcp_client.ex:76: Open890.TCPClient.handle_info/2
(stdlib 3.17.2) gen_server.erl:695: :gen_server.try_dispatch/4
(stdlib 3.17.2) gen_server.erl:771: :gen_server.handle_msg/6
(stdlib 3.17.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: {:tcp, #Port<0.17>, "MG100;"}
Tony Collen commented
Fixed in a89be68