app/models/extface/driver/daisy_fx1200.rb in extface-0.4.9 vs app/models/extface/driver/daisy_fx1200.rb in extface-0.5.0

- old
+ new

@@ -246,10 +246,10 @@ def frecv(timeout) # return RespFrame or nil rframe = nil BAD_SEQ_MAX_COUNT.times do if frame_bytes = pull(timeout) rframe = RespFrame.new(frame_bytes.b) - if rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply + if rframe.seq.nil? || rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply break else errors.add :base, "Sequence mismatch" rframe = nil #invalidate mismatch sequence frame for the last retry end \ No newline at end of file