We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcbb2ad commit 12c147fCopy full SHA for 12c147f
sensors/ov5640.c
@@ -384,9 +384,9 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize)
384
framesize_t old_framesize = sensor->status.framesize;
385
sensor->status.framesize = framesize;
386
387
- if(framesize > FRAMESIZE_QSXGA){
388
- ESP_LOGE(TAG, "Invalid framesize: %u", framesize);
389
- return -1;
+ if (framesize > FRAMESIZE_5MP) {
+ ESP_LOGW(TAG, "Invalid framesize: %u", framesize);
+ framesize = FRAMESIZE_5MP;
390
}
391
uint16_t w = resolution[framesize].width;
392
uint16_t h = resolution[framesize].height;
0 commit comments