diff --git a/sensors/gc0308.c b/sensors/gc0308.c index 176f012ac0..09d333183a 100644 --- a/sensors/gc0308.c +++ b/sensors/gc0308.c @@ -257,8 +257,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize) write_reg(sensor->slv_addr, 0xf7, col_s / 4); write_reg(sensor->slv_addr, 0xf8, row_s / 4); - write_reg(sensor->slv_addr, 0xf9, (col_s + h) / 4); - write_reg(sensor->slv_addr, 0xfa, (row_s + w) / 4); + write_reg(sensor->slv_addr, 0xf9, (col_s + w) / 4); + write_reg(sensor->slv_addr, 0xfa, (row_s + h) / 4); write_reg(sensor->slv_addr, 0x05, H8(row_s)); write_reg(sensor->slv_addr, 0x06, L8(row_s));