mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
parent
c6d73c864c
commit
cb7b22a2ea
@ -239,9 +239,6 @@ void sensor_init0()
|
|||||||
|
|
||||||
// Set fb_enabled
|
// Set fb_enabled
|
||||||
JPEG_FB()->enabled = fb_enabled; // controlled by the IDE.
|
JPEG_FB()->enabled = fb_enabled; // controlled by the IDE.
|
||||||
|
|
||||||
// Reset the sesnor state
|
|
||||||
memset(&sensor, 0, sizeof(sensor_t));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int sensor_init()
|
int sensor_init()
|
||||||
@ -288,6 +285,9 @@ int sensor_init()
|
|||||||
#error "OMV_XCLK_SOURCE is not set!"
|
#error "OMV_XCLK_SOURCE is not set!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Reset the sesnor state */
|
||||||
|
memset(&sensor, 0, sizeof(sensor_t));
|
||||||
|
|
||||||
/* Some sensors have different reset polarities, and we can't know which sensor
|
/* Some sensors have different reset polarities, and we can't know which sensor
|
||||||
is connected before initializing cambus and probing the sensor, which in turn
|
is connected before initializing cambus and probing the sensor, which in turn
|
||||||
requires pulling the sensor out of the reset state. So we try to probe the
|
requires pulling the sensor out of the reset state. So we try to probe the
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user