Crop resolutions higher than OMV_MAX_RAW_FRAME.

This commit is contained in:
iabdalkader 2016-08-16 12:48:47 +02:00
parent 2affb38a22
commit abace9e4fe

View File

@ -383,7 +383,7 @@ int sensor_set_framesize(framesize_t framesize)
// Skip the first frame.
fb->bpp = 0;
if (framesize >= FRAMESIZE_VGA) {
if (framesize > OMV_MAX_RAW_FRAME) {
// Crop higher resolutions to QVGA
sensor_set_windowing(190, 120, 320, 240);
} else {