Skip to content

Commit 9e74676

Browse files
committed
qspi example
1 parent d625772 commit 9e74676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/phytium/libraries/drivers_example/qspi_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void qspi_thread(void *parameter)
6464
rt_uint8_t recv;
6565
rt_uint8_t cmd = 0x9F;/*read the flash status reg2*/
6666
res = rt_qspi_send_then_recv(qspi_test_device, &cmd, sizeof(cmd), &recv, sizeof(recv));
67-
if (recv != 0x0 || res != 0)
67+
if (recv == 0x0 || res != 0)
6868
{
6969
LOG_E("The status reg is incorrect\n");
7070
res = RT_ERROR;

0 commit comments

Comments
 (0)