app/models/extface/driver/daisy_fx1200.rb in extface-0.5.2 vs app/models/extface/driver/daisy_fx1200.rb in extface-0.5.3

- old
+ new

@@ -251,15 +251,17 @@ end def frecv(timeout) # return RespFrame or nil rframe = nil BAD_SEQ_MAX_COUNT.times do + errors.clear if frame_bytes = pull(timeout) rframe = RespFrame.new(frame_bytes.b) if rframe.seq.nil? || rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply break else errors.add :base, "Sequence mismatch" + p "Invalid sequence (expected: #{sequence_number(false).to_s(16)}, got: #{rframe.seq.ord.to_s(16)})" rframe = nil #invalidate mismatch sequence frame for the last retry end else errors.add :base, "No data received from device" break \ No newline at end of file