Browse Source

Fix right column & row of the measure window (#588)

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
pull/616/head v2.0.6
Larry Li 2 years ago committed by GitHub
parent
commit
dba8da9898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sensors/gc0308.c

4
sensors/gc0308.c

@ -257,8 +257,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize) @@ -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));

Loading…
Cancel
Save