mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57: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
@@ -129,7 +129,7 @@ static rt_err_t swm_spi_configure(struct rt_spi_device *device,
|
||||
}
|
||||
else
|
||||
{
|
||||
return RT_EIO;
|
||||
return -RT_EIO;
|
||||
}
|
||||
|
||||
if (configure->mode & RT_SPI_CPHA)
|
||||
|
||||
@@ -131,7 +131,7 @@ static rt_err_t swm_spi_configure(struct rt_spi_device *device,
|
||||
}
|
||||
else
|
||||
{
|
||||
return RT_EIO;
|
||||
return -RT_EIO;
|
||||
}
|
||||
|
||||
if (configure->mode & RT_SPI_CPHA)
|
||||
|
||||
Reference in New Issue
Block a user