Revert "Reset sensor state in init0."

This reverts commit b02f2f7ff8.
This commit is contained in:
iabdalkader 2020-07-18 18:07:44 +02:00
parent c6d73c864c
commit cb7b22a2ea

View File

@ -239,9 +239,6 @@ void sensor_init0()
// Set fb_enabled
JPEG_FB()->enabled = fb_enabled; // controlled by the IDE.
// Reset the sesnor state
memset(&sensor, 0, sizeof(sensor_t));
}
int sensor_init()
@ -288,6 +285,9 @@ int sensor_init()
#error "OMV_XCLK_SOURCE is not set!"
#endif
/* Reset the sesnor state */
memset(&sensor, 0, sizeof(sensor_t));
/* 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
requires pulling the sensor out of the reset state. So we try to probe the