We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d625772 commit 9e74676Copy full SHA for 9e74676
bsp/phytium/libraries/drivers_example/qspi_sample.c
@@ -64,7 +64,7 @@ void qspi_thread(void *parameter)
64
rt_uint8_t recv;
65
rt_uint8_t cmd = 0x9F;/*read the flash status reg2*/
66
res = rt_qspi_send_then_recv(qspi_test_device, &cmd, sizeof(cmd), &recv, sizeof(recv));
67
- if (recv != 0x0 || res != 0)
+ if (recv == 0x0 || res != 0)
68
{
69
LOG_E("The status reg is incorrect\n");
70
res = RT_ERROR;
0 commit comments