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();
|
||||
|
||||
#if defined(PORTENTA) || defined(OPENMVPT)
|
||||
// These boards use the same I2C bus for the sensor and
|
||||
// user scripts. The I2C bus must be reinitialized on soft-reset.
|
||||
// Always reinit cambus after soft reset which could have terminated the cambus in the middle
|
||||
// of an I2C read/write.
|
||||
cambus_init(&sensor.bus, ISC_I2C_ID, ISC_I2C_SPEED);
|
||||
#endif
|
||||
|
||||
// Disable VSYNC IRQ and callback
|
||||
sensor_set_vsync_callback(NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user