From 82487a0b405e61236991dca155fb827150d88d09 Mon Sep 17 00:00:00 2001 From: Larry Li Date: Tue, 24 Oct 2023 09:44:34 +0800 Subject: [PATCH] Fix right column & row of the measure window --- sensors/gc0308.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sensors/gc0308.c b/sensors/gc0308.c index f19025ebb3..aacfa7f26d 100644 --- a/sensors/gc0308.c +++ b/sensors/gc0308.c @@ -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));