From b71f2a15eaf7b8ceddca7cec609e16c846c01724 Mon Sep 17 00:00:00 2001 From: Martin Kojtal <0xc0170@gmail.com> Date: Wed, 6 Dec 2017 13:16:09 +0000 Subject: [PATCH] QSPI: fix alt size NONE instead 0 --- drivers/QSPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/QSPI.cpp b/drivers/QSPI.cpp index c30dea57ab..a4a11a1ec3 100644 --- a/drivers/QSPI.cpp +++ b/drivers/QSPI.cpp @@ -273,7 +273,7 @@ void QSPI::_build_qspi_command(int instruction, int address, int alt) _qspi_command.alt.value = alt; } else { //In the case alt phase is absent, set the alt size to be NONE - _qspi_command.alt.value = 0; + _qspi_command.alt.size = QSPI_CFG_ALT_SIZE_NONE; } _qspi_command.dummy_count = _num_dummy_cycles;