Skip to content

Commit 16ca742

Browse files
0xc0170maciejbocianski
authored andcommitted
QSPI STM32: fix disabled format phase
1 parent 2766672 commit 16ca742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/qspi_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void qspi_prepare_command(const qspi_command_t *command, QSPI_CommandTypeDef *st
7676
break;
7777
}
7878

79-
if (command->address.size == QSPI_CFG_ADDR_SIZE_NONE) {
79+
if (command->address.disabled == true) {
8080
st_command->AddressMode = QSPI_ADDRESS_NONE;
8181
}
8282

@@ -95,7 +95,7 @@ void qspi_prepare_command(const qspi_command_t *command, QSPI_CommandTypeDef *st
9595
break;
9696
}
9797

98-
if (command->alt.size == QSPI_CFG_ALT_SIZE_NONE) {
98+
if (command->alt.disabled == true) {
9999
st_command->AlternateByteMode = QSPI_ALTERNATE_BYTES_NONE;
100100
}
101101

0 commit comments

Comments
 (0)