sensors/ov7670: Fix CLKRC bypass/pre-scaler.

This commit is contained in:
iabdalkader 2023-05-25 15:37:42 +02:00
parent 275ce67269
commit de7f161acd

View File

@ -23,7 +23,11 @@
static const uint8_t default_regs[][2] = {
// OV7670 reference registers
{ CLKRC, CLKRC_PRESCALER_BYPASS | OMV_OV7670_CLKRC },
#if (OMV_OV7670_CLKRC == 0)
{ CLKRC, CLKRC_PRESCALER_BYPASS },
#else
{ CLKRC, OMV_OV7670_CLKRC },
#endif
{ TSLB, 0x04 },
{ COM7, 0x00 },
{ HSTART, 0x13 },