NUC123 USB driver: fix off-by-one error when copying unaligned memory to/from USB SRAM buffer

This commit is contained in:
Alex Lewontin 2020-12-15 21:58:33 -05:00
parent 6a5f58e1e5
commit ad580f5b2f
No known key found for this signature in database
GPG Key ID: 52A3855FC3BB8CD7
1 changed files with 1 additions and 1 deletions

View File

@ -148,9 +148,9 @@ unaligned:
str r5, [r4, #16]
unaligned_loop_top:
subs r2, r2, #1
ldrb r5, [r1, r2]
strb r5, [r0, r2]
subs r2, r2, #1
unaligned_loop_check:
bne.n unaligned_loop_top