浏览代码

!350 解决创建PR时的报错
Merge pull request !350 from 傅尔先森/gitee_master

bernard 3 年之前
父节点
当前提交
3e6b7690db
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bsp/Vango_V85xx/drivers/drv_spi.c

+ 1 - 1
bsp/Vango_V85xx/drivers/drv_spi.c

@@ -126,7 +126,7 @@ static rt_uint32_t xfer(struct rt_spi_device* device, struct rt_spi_message* mes
     rt_uint32_t spi_periph = (rt_uint32_t)device->bus->parent.user_data;
     rt_uint32_t spi_periph = (rt_uint32_t)device->bus->parent.user_data;
     struct rt_spi_configuration * config = &device->config;
     struct rt_spi_configuration * config = &device->config;
 
 
-    RT_ASSERT(device != NULL);
+    RT_ASSERT(device != RT_NULL);
     RT_ASSERT(message != NULL);
     RT_ASSERT(message != NULL);
 
 
     /* take CS */
     /* take CS */