Skip to content

Commit

Permalink
Fix right column & row of the measure window (#588)
Browse files Browse the repository at this point in the history
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
  • Loading branch information
larryli and me-no-dev authored Nov 10, 2023
1 parent 8e1a003 commit dba8da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sensors/gc0308.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit dba8da9

Please sign in to comment.