summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-07-22 21:28:44 +0700
committerGitHub <[email protected]>2024-07-22 21:28:44 +0700
commitf09e23e453987c5b12b261b98400d3fce3a37c2d (patch)
tree0e76370111704744d129b10d6d36bfac694bc4a1 /src
parente09cf361048ec4a77ce6ec6ac35f1b8b2d62d76c (diff)
parent4de46fcf975d57983192874feea9d94427f5de50 (diff)
Merge pull request #2732 from hathach/fix-fsdev-issue
fix fsdev issue introduced by #1942
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
index 8bfb899ca..39f33bc34 100644
--- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
+++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
@@ -1004,7 +1004,7 @@ static bool dcd_write_packet_memory(uint16_t dst, const void *__restrict src, ui
srcVal++;
}
- if (wNBytes) {
+ if (wNBytes & 0x01) {
temp1 = (uint16_t) *srcVal;
*pdwVal = temp1;
}