fix undefined symbol_code variable

This commit is contained in:
Fly Dev 2025-06-23 14:47:52 +00:00
parent 264d4fe98d
commit c6313de447

View file

@ -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