enabled cropping only for HM-01B0

This commit is contained in:
Dario Pennisi 2020-07-14 14:11:07 -04:00
parent fb80409fe2
commit 2c56bbc37a

View File

@ -1303,8 +1303,11 @@ int sensor_snapshot(sensor_t *sensor, image_t *image, streaming_cb_t streaming_c
// If two frames fit in ram, use double buffering in streaming mode.
doublebuf = ((length*2) <= OMV_RAW_BUF_SIZE);
HAL_DCMI_EnableCrop(&DCMIHandle);
HAL_DCMI_ConfigCrop(&DCMIHandle,0,0,w-1,h-1);
#if OMV_ENABLE_HM01B0
HAL_DCMI_EnableCrop(&DCMIHandle);
HAL_DCMI_ConfigCrop(&DCMIHandle,0,0,w-1,h-1);
#endif
do {
// Clear the offset counter variable before we allow more data to be received.
offset = 0;