fix a bug in fsdev introduced by #1942

This commit is contained in:
hathach
2024-07-22 16:01:39 +07:00
parent e09cf36104
commit 4de46fcf97
5 changed files with 7 additions and 4 deletions

View File

@@ -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;
}