Skip to content

Commit 6274cd4

Browse files
0xc0170maciejbocianski
authored andcommitted
QSPI: fix address size for build qspi command
if address is skipped, used size NONE
1 parent 894f8bd commit 6274cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/QSPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void QSPI::_build_qspi_command(int instruction, int address, int alt)
264264
if(address != -1) {
265265
_qspi_command.address.value = address;
266266
} else {
267-
_qspi_command.address.value = 0;
267+
_qspi_command.address.size = QSPI_CFG_ADDR_SIZE_NONE;
268268
}
269269

270270
//Set up alt phase parameters

0 commit comments

Comments
 (0)