mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
enabled cropping only for HM-01B0
This commit is contained in:
parent
fb80409fe2
commit
2c56bbc37a
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user