We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e1a003 commit dba8da9Copy full SHA for dba8da9
sensors/gc0308.c
@@ -257,8 +257,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize)
257
258
write_reg(sensor->slv_addr, 0xf7, col_s / 4);
259
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);
+ write_reg(sensor->slv_addr, 0xf9, (col_s + w) / 4);
+ write_reg(sensor->slv_addr, 0xfa, (row_s + h) / 4);
262
263
write_reg(sensor->slv_addr, 0x05, H8(row_s));
264
write_reg(sensor->slv_addr, 0x06, L8(row_s));
0 commit comments