lib/fit/file/definition.rb in fit-parser-0.0.2 vs lib/fit/file/definition.rb in fit-parser-0.0.3
- old
+ new
@@ -71,10 +71,16 @@
build_int_type 16, false
when 12 # uint32z
build_int_type 32, false
when 13 # array of bytes
build_int_type 8, false
+ when 14 # sint64
+ build_int_type 64, true
+ when 15 # uint64
+ build_int_type 64, false
+ when 16 # uint64z
+ build_int_type 64, false
else
raise "Can't map base_type_number #{base_type_number} to a data type"
end
end
@@ -102,10 +108,10 @@
choice :global_message_number, :selection => :architecture do
uint16le 0
uint16be 1
end
bit8 :field_count
- array :fields, :type => Field, :initial_length => :field_count
+ array :fit_fields, :type => Field, :initial_length => :field_count
def endianness
architecture.snapshot == 0 ? :little : :big
end