mirror of
https://github.com/espressif/esp32-camera.git
synced 2025-07-04 08:03:17 +08:00
Update ov7725.c
This commit is contained in:
@ -221,6 +221,9 @@ static int set_pixformat(sensor_t *sensor, pixformat_t pixformat)
|
|||||||
static int set_framesize(sensor_t *sensor, framesize_t framesize)
|
static int set_framesize(sensor_t *sensor, framesize_t framesize)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
if (framesize > FRAMESIZE_VGA) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
uint16_t w = resolution[framesize].width;
|
uint16_t w = resolution[framesize].width;
|
||||||
uint16_t h = resolution[framesize].height;
|
uint16_t h = resolution[framesize].height;
|
||||||
uint8_t reg = SCCB_Read(sensor->slv_addr, COM7);
|
uint8_t reg = SCCB_Read(sensor->slv_addr, COM7);
|
||||||
|
Reference in New Issue
Block a user