Fix record label typo: lat_west -> lon_west
[erlang-x-plane-data.git] / src / x_plane_datum.erl
index e5f7faa..15b21aa 100644 (file)
@@ -88,9 +88,9 @@ anonymous_of_bin(
         {error, {block_index_byte_out_of_range, Anonymous}}
     end;
 anonymous_of_bin(<<Block/binary>>, _) ->
-    % This case shouldn't be possible with a correct packet length, but we want to
-    % allow for possibility of using this module independently of it's parent,
-    % data module.
+    % This case shouldn't be possible with a correct packet length, but we want
+    % to allow for possibility of using this module independently of it's
+    % parent, data module.
     {error, {block_structure_invalid, Block}}.
 
 -spec identify_or_index(anonymous()) ->
@@ -127,7 +127,7 @@ identify_or_index({20, V1, V2, V3, V4, V5, V6, V7, V8}) ->
         , on_runwy  = V5
         , alt_ind   = V6
         , lat_south = V7
-        , lat_west  = V8
+        , lon_west  = V8
         },
     {lat_lon_alt, Datum};
 identify_or_index({Index, _, _, _, _, _, _, _, _}=Anonymous) ->
This page took 0.026411 seconds and 4 git commands to generate.