From 8c88ab8142f8f71d8e19f294dc040b24c07f2957 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 7 Jun 2021 08:21:11 -0500 Subject: [PATCH] cam: Use a named constant instead of a number --- ports/esp32s2/cam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/esp32s2/cam.c b/ports/esp32s2/cam.c index 5cdae71e19..9dacbedb95 100644 --- a/ports/esp32s2/cam.c +++ b/ports/esp32s2/cam.c @@ -205,7 +205,7 @@ static void cam_set_pin(const cam_config_t *config) { gpio_matrix_in(config->pin_data[i], I2S0I_DATA_IN0_IDX + (16 - config->bit_width) + i, false); } - gpio_matrix_in(0x38, I2S0I_H_ENABLE_IDX, false); + gpio_matrix_in(GPIO_FUNC_IN_HIGH, I2S0I_H_ENABLE_IDX, false); ESP_LOGI(TAG, "cam_set_pin\n"); }