From be72f87345c38183f0949400099ed59cc007c311 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Mon, 21 Jul 2025 23:10:03 -0700 Subject: [PATCH] common: Add polarity config override. --- common/omv_csi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/omv_csi.c b/common/omv_csi.c index e5fd7f49c..e116ff511 100644 --- a/common/omv_csi.c +++ b/common/omv_csi.c @@ -464,10 +464,14 @@ int omv_csi_probe(omv_i2c_t *i2c) { // Active power-down state, active reset state // This order is required for all sensors to work correctly. const omv_csi_polarity_t polarity_configs[][2] = { + #if defined(OMV_CSI_POLARITY_CONFIG) + OMV_CSI_POLARITY_CONFIG + #else { OMV_CSI_ACTIVE_HIGH, OMV_CSI_ACTIVE_HIGH }, { OMV_CSI_ACTIVE_HIGH, OMV_CSI_ACTIVE_LOW }, { OMV_CSI_ACTIVE_LOW, OMV_CSI_ACTIVE_HIGH }, { OMV_CSI_ACTIVE_LOW, OMV_CSI_ACTIVE_LOW }, + #endif // OMV_CSI_POLARITY_CONFIG }; // Scan the bus multiple times using different reset and power polarities,