mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Make cambus reinit standard for all boards
This commit is contained in:
parent
c1289deb02
commit
9e4bcb21fc
@ -234,11 +234,9 @@ void sensor_init0()
|
|||||||
{
|
{
|
||||||
dcmi_abort();
|
dcmi_abort();
|
||||||
|
|
||||||
#if defined(PORTENTA) || defined(OPENMVPT)
|
// Always reinit cambus after soft reset which could have terminated the cambus in the middle
|
||||||
// These boards use the same I2C bus for the sensor and
|
// of an I2C read/write.
|
||||||
// user scripts. The I2C bus must be reinitialized on soft-reset.
|
|
||||||
cambus_init(&sensor.bus, ISC_I2C_ID, ISC_I2C_SPEED);
|
cambus_init(&sensor.bus, ISC_I2C_ID, ISC_I2C_SPEED);
|
||||||
#endif
|
|
||||||
|
|
||||||
// Disable VSYNC IRQ and callback
|
// Disable VSYNC IRQ and callback
|
||||||
sensor_set_vsync_callback(NULL);
|
sensor_set_vsync_callback(NULL);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user