Skip to content

Commit

Permalink
Fix right column & row of the measure window
Browse files Browse the repository at this point in the history
  • Loading branch information
larryli authored Oct 24, 2023
1 parent efe711d commit 82487a0
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 @@ -253,8 +253,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 82487a0

Please sign in to comment.