[error code][-RT_EIO] fix that use RT_EIO without -

This commit is contained in:
Meco Man
2023-03-16 20:20:37 -04:00
committed by Man, Jianting (Meco)
parent 334c609c6c
commit 2cc9bd876e
57 changed files with 87 additions and 87 deletions
+1 -1
View File
@@ -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;
}
}
+1 -1
View File
@@ -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 */