mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #996 from openmv/winc_bus
Return error on WINC SPI bus init fail.
This commit is contained in:
commit
70fcd764df
@ -142,7 +142,10 @@ sint8 nm_bus_init(void *pvinit)
|
|||||||
SPI_HANDLE.Init.CRCPolynomial = 7;
|
SPI_HANDLE.Init.CRCPolynomial = 7;
|
||||||
|
|
||||||
// Init SPI
|
// Init SPI
|
||||||
HAL_SPI_Init(&SPI_HANDLE);
|
HAL_SPI_DeInit(&SPI_HANDLE);
|
||||||
|
if (HAL_SPI_Init(&SPI_HANDLE) != HAL_OK) {
|
||||||
|
result = M2M_ERR_BUS_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
nm_bsp_reset();
|
nm_bsp_reset();
|
||||||
WINC_CS_HIGH();
|
WINC_CS_HIGH();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user