Skip to content

Commit

Permalink
Merge pull request #114 from marcone/master
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
jfdelnero authored Nov 4, 2024
2 parents 531a745 + e53f2e4 commit 82389df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ int check_and_send_USB_ZLP(mtp_ctx * ctx , int size)
// USB ZLP needed ?
if( (size >= ctx->max_packet_size) && !(size % ctx->max_packet_size) )
{
PRINT_DEBUG("%d bytes transfert ended - ZLP packet needed", size);
PRINT_DEBUG("%d bytes transfer ended - ZLP packet needed", size);

// Yes - Send zero lenght packet.
write_usb(ctx->usb_ctx,EP_DESCRIPTOR_IN,ctx->wrbuffer,0);
Expand Down
4 changes: 2 additions & 2 deletions src/mtp_operations/mtp_ops_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ mtp_size send_file_data( mtp_ctx * ctx, fs_entry * entry,mtp_offset offset, mtp_

if( ctx->cancel_req )
{
PRINT_DEBUG("send_file_data : Cancelled ! Aborded...");
PRINT_DEBUG("send_file_data : Cancelled ! Aborted...");

// Force a ZLP
check_and_send_USB_ZLP(ctx , ctx->max_packet_size );
Expand All @@ -174,7 +174,7 @@ mtp_size send_file_data( mtp_ctx * ctx, fs_entry * entry,mtp_offset offset, mtp_
}
else
{
PRINT_DEBUG("send_file_data : Full transfert done !");
PRINT_DEBUG("send_file_data : Full transfer done !");

check_and_send_USB_ZLP(ctx , sizeof(MTP_PACKET_HEADER) + actualsize );
}
Expand Down

0 comments on commit 82389df

Please sign in to comment.