app/models/extface/driver/daisy_fx1200.rb in extface-0.1.9 vs app/models/extface/driver/daisy_fx1200.rb in extface-0.2.0

- old
+ new

@@ -267,10 +267,10 @@ validate :len_validation def initialize(buffer) # test Extface::Driver::DaisyFx1200::RespFrame.new("\x16\x16\x01\x2c\x20\x2dP\x04SSSSSS\x05\BBBB\x03") # LEN SEQ CMD DATA STATUS BCC - if match = buffer.match(/\x01(.{1})(.{1})(.{1})(.*)\x04(.{6})\x05(.{4})\x03/n) + if match = buffer.match(/\x01(.{1})(.{1})(.{1})(.*)\x04(.{6})\x05(.{4})\x03/nm) @frame = match.to_a.first @len, @seq, @cmd, @data, @status, @bcc = match.captures else #TODO look for NAK end \ No newline at end of file