Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAlphaFox committed Oct 4, 2021
1 parent e3b3bc0 commit 696a27a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aiutp_rx.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
in(#aiutp_packet{seq_nr = PktSeqNR} = Packet,
#aiutp_pcb{ack_nr = AckNR} = PCB)->
NextAckNR = aiutp_util:bit16(AckNR + 1),
io:format("recv: ~p expect: ~p~n",[PktSeqNR,NextAckNR]),
PCB1 =
if PktSeqNR == NextAckNR -> recv(Packet,PCB#aiutp_pcb{ack_nr = PktSeqNR});
true-> recv_reorder(aiutp_util:bit16(PktSeqNR - NextAckNR),Packet,PCB)
Expand Down

0 comments on commit 696a27a

Please sign in to comment.