Skip to content

Commit 9b32c0f

Browse files
author
Kyle Kearney
committed
Fix possible negative QSPI alt count on STM
Remove an extraneous decrement operation in cases where the alt bits size is a multiple of 8.
1 parent baf375f commit 9b32c0f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

targets/TARGET_STM/qspi_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ qspi_status_t qspi_prepare_command(const qspi_command_t *command, QSPI_CommandTy
305305
// Align alt value to the end of the most significant byte
306306
st_command->AlternateBytes = command->alt.value << leftover_bits;
307307
} else {
308-
rounded_size -= 1;
309308
st_command->AlternateBytes = command->alt.value;
310309
}
311310

0 commit comments

Comments
 (0)