How it works the return??
Hello all,
I'm using the HAL library for the camera, specifically I'm using the function:
HAL_StatusTypeDef HAL_DCMI_Start_DMA(DCMI_HandleTypeDef *hdcmi, uint32_t DCMI_Mode, uint32_t pData, uint32_t Length)
In the function are many return HAL_ERROR, and one HAL_OK. When the function works fine It return a 0, but when I have an error it return 2.
Why It retuns 2 if the HAL_ERROR is defined as 1 when I have an error.