Skip to content

Commit 8e171f1

Browse files
committed
Camera.c: remove unneeded #include logic
1 parent 7b17197 commit 8e171f1

File tree

1 file changed

+0
-18
lines changed
  • ports/espressif/common-hal/espcamera

1 file changed

+0
-18
lines changed

ports/espressif/common-hal/espcamera/Camera.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@
1515
#include "shared-bindings/util.h"
1616
#include "common-hal/microcontroller/Pin.h"
1717

18-
// These two includes are needed to peek into the i2c handle to get the i2c port
19-
// number.
20-
#include "sdkconfig.h"
21-
// Define these two macros if not defined so that we don't get the -Wundef
22-
// warning from i2c_private.h
23-
#ifndef CONFIG_I2C_ISR_IRAM_SAFE
24-
#define CONFIG_I2C_ISR_IRAM_SAFE 0
25-
#endif
26-
#ifndef CONFIG_PM_ENABLE
27-
#define CONFIG_PM_ENABLE 0
28-
#endif
29-
30-
// i2c_private.h uses `#if` with some macros that may be undefined and taken as 0.
31-
#pragma GCC diagnostic push
32-
#pragma GCC diagnostic ignored "-Wundef"
33-
#include "esp-idf/components/esp_driver_i2c/i2c_private.h"
34-
#pragma GCC diagnostic pop
35-
3618
#include "esp-camera/driver/private_include/cam_hal.h"
3719

3820
#if !CONFIG_SPIRAM

0 commit comments

Comments
 (0)