From 6274cd4597cfff3f44e11917ba1bf7d34abbf985 Mon Sep 17 00:00:00 2001 From: Martin Kojtal <0xc0170@gmail.com> Date: Tue, 5 Dec 2017 14:17:29 +0000 Subject: [PATCH] QSPI: fix address size for build qspi command if address is skipped, used size NONE --- drivers/QSPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/QSPI.cpp b/drivers/QSPI.cpp index 3d1eee970a..df4bbca2a5 100644 --- a/drivers/QSPI.cpp +++ b/drivers/QSPI.cpp @@ -264,7 +264,7 @@ void QSPI::_build_qspi_command(int instruction, int address, int alt) if(address != -1) { _qspi_command.address.value = address; } else { - _qspi_command.address.value = 0; + _qspi_command.address.size = QSPI_CFG_ADDR_SIZE_NONE; } //Set up alt phase parameters