sensors/genx320: Prevent event mode capture if transpose is enabled.

This commit is contained in:
Kwabena W. Agyeman 2025-02-19 23:33:19 -08:00
parent 660a783d68
commit 7a718c6aff

View File

@ -393,6 +393,12 @@ static void snapshot_post_process(image_t *image) {
}
static int snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
#if (OMV_GENX320_EHC_ENABLE != 1)
if (csi->transpose) {
return OMV_CSI_ERROR_CAPTURE_FAILED;
}
#endif
#if (OMV_GENX320_CAL_ENABLE == 1)
if (!hot_pixels_disabled) {
uint8_t *histogram = fb_alloc0(ACTIVE_SENSOR_SIZE, FB_ALLOC_NO_HINT);