Skip to content

Commit 9f22e75

Browse files
committed
error if camera is configured but no psram
1 parent 8ed6a61 commit 9f22e75

File tree

1 file changed

+4
-0
lines changed
  • ports/espressif/common-hal/esp32_camera

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434

3535
#include "esp32-camera/driver/private_include/cam_hal.h"
3636

37+
#if !CONFIG_SPIRAM
38+
#error esp32_camera only works on boards configured with spiram, disable it in mpconfigboard.mk
39+
#endif
40+
3741
static void maybe_claim_pin(const mcu_pin_obj_t *pin) {
3842
if (pin) {
3943
claim_pin(pin);

0 commit comments

Comments
 (0)