Skip to content

Commit dba8da9

Browse files
larrylime-no-dev
andauthored
Fix right column & row of the measure window (#588)
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
1 parent 8e1a003 commit dba8da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sensors/gc0308.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize)
257257

258258
write_reg(sensor->slv_addr, 0xf7, col_s / 4);
259259
write_reg(sensor->slv_addr, 0xf8, row_s / 4);
260-
write_reg(sensor->slv_addr, 0xf9, (col_s + h) / 4);
261-
write_reg(sensor->slv_addr, 0xfa, (row_s + w) / 4);
260+
write_reg(sensor->slv_addr, 0xf9, (col_s + w) / 4);
261+
write_reg(sensor->slv_addr, 0xfa, (row_s + h) / 4);
262262

263263
write_reg(sensor->slv_addr, 0x05, H8(row_s));
264264
write_reg(sensor->slv_addr, 0x06, L8(row_s));

0 commit comments

Comments
 (0)