fix undefined symbol_code variable
This commit is contained in:
parent
264d4fe98d
commit
c6313de447
1 changed files with 3 additions and 2 deletions
|
|
@ -33,7 +33,8 @@ defmodule Parser.Object do
|
|||
_ -> %{latitude: nil, longitude: nil, comment: comment, position_format: :compressed}
|
||||
end
|
||||
|
||||
<<latitude::binary-size(8), sym_table_id::binary-size(1), longitude::binary-size(9), comment::binary>> ->
|
||||
<<latitude::binary-size(8), sym_table_id::binary-size(1), longitude::binary-size(9), symbol_code::binary-size(1),
|
||||
comment::binary>> ->
|
||||
%{latitude: lat, longitude: lon} =
|
||||
Parser.Position.parse_aprs_position(latitude, longitude)
|
||||
|
||||
|
|
@ -61,5 +62,5 @@ defmodule Parser.Object do
|
|||
)
|
||||
end
|
||||
|
||||
def parse(data), do: %{raw_data: data, data_type: :object}
|
||||
def parse(data), do: %{raw_type: :object}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue