mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[error code][-RT_EIO] fix that use RT_EIO without -
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
334c609c6c
commit
2cc9bd876e
@@ -804,7 +804,7 @@ rt_err_t enc28j60_attach(const char *spi_device_name)
|
||||
NET_DEBUG("phy_rev:%02X\r\n", enc28j60_dev.phy_rev);
|
||||
NET_DEBUG("phy_pn:%02X\r\n", enc28j60_dev.phy_pn);
|
||||
NET_DEBUG("phy_id:%08X\r\n", enc28j60_dev.phy_id);
|
||||
return RT_EIO;
|
||||
return -RT_EIO;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ static rt_err_t rt_msd_init(rt_device_t dev)
|
||||
if (msd->spi_device == RT_NULL)
|
||||
{
|
||||
MSD_DEBUG("[err] the SPI SD device has no SPI!\r\n");
|
||||
return RT_EIO;
|
||||
return -RT_EIO;
|
||||
}
|
||||
|
||||
/* config spi */
|
||||
|
||||
Reference in New Issue
Block a user