app/models/extface/driver/datecs/fp550.rb in extface-0.4.4a vs app/models/extface/driver/datecs/fp550.rb in extface-0.4.4b
- old
+ new
@@ -22,10 +22,10 @@
errors.empty?
end
def fsend(cmd, data = "") #return data or nil
packet_data = build_packet(cmd, data) #store packet to be able to re-transmit it with the same sequence number
- p packet_data
+ result = false
invalid_frames = 0 #counter for bad responses
nak_messages = 0 #counter for rejected packets (should re-transmit the packet)
push packet_data #send packet
ACKS_MAX_WAIT.times do |retries|
errors.clear
\ No newline at end of file