Fix bug in mtp_intermediate

parent 9403f11e
......@@ -33,7 +33,7 @@ new(Opts) ->
-spec try_decode_packet(binary(), codec()) -> {ok, binary(), codec()}
| {incomplete, codec()}.
try_decode_packet(<<Len:32/unsigned-little, _/binary>> = Data,
#int_st{buffer = <<>>} = St) when Len < ?MAX_SIZE ->
#int_st{buffer = <<>>} = St) ->
Len1 = case Len < ?MAX_SIZE of
true -> Len;
false -> Len - ?MAX_SIZE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment