Skip to content

Commit

Permalink
Fix: if语句的判断条件存在变量名错误
Browse files Browse the repository at this point in the history
  • Loading branch information
suywang authored and mysterywolf committed Apr 18, 2023
1 parent 308c1c6 commit 3f44132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsp/at32/libraries/rt_drivers/drv_qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ rt_err_t at32_qspi_bus_attach_device(const char *bus_name, const char *device_na
goto __exit;
}
cs_pin = (struct at32_hw_spi_cs *)rt_malloc(sizeof(struct at32_hw_spi_cs));
if (qspi_device == RT_NULL)
if (cs_pin == RT_NULL)
{
LOG_E("no memory, qspi bus attach device failed!");
result = -RT_ENOMEM;
Expand Down

0 comments on commit 3f44132

Please sign in to comment.