lib/lens_protocol/oma/message.rb in lens_protocol-0.1.1 vs lib/lens_protocol/oma/message.rb in lens_protocol-0.1.2

- old
+ new

@@ -70,11 +70,10 @@ # Returns the "R" reconds decoded radiuses according to the tracing format. def radius_data return [] unless value_of('TRCFMT') && value_of('R') [0, 1].map do |side| - format_number, = value_of('TRCFMT')[side] - case format_number.to_i + case Type::Trcfmt.number(value_of('TRCFMT')[side]) when 0 # side not present [] when 1 # ASCII format value_of('R')[side] else # unknown format