diff --git a/sensors/ov2640.c b/sensors/ov2640.c index 6d5dfc6..7e3d771 100755 --- a/sensors/ov2640.c +++ b/sensors/ov2640.c @@ -150,7 +150,7 @@ static int set_window(sensor_t *sensor, ov2640_sensor_mode_t mode, int offset_x, {VSIZE, max_y & 0xFF}, {XOFFL, offset_x & 0xFF}, {YOFFL, offset_y & 0xFF}, - {VHYX, ((max_y >> 1) & 0X80) | ((offset_y >> 4) & 0X70) | ((max_x >> 5) & 0X08) | ((offset_y >> 8) & 0X07)}, + {VHYX, ((max_y >> 1) & 0X80) | ((offset_y >> 4) & 0X70) | ((max_x >> 5) & 0X08) | ((offset_x >> 8) & 0X07)}, {TEST, (max_x >> 2) & 0X80}, {ZMOW, (w)&0xFF}, {ZMOH, (h)&0xFF},