Skip to content

Commit 76a89ea

Browse files
authored
modcamera.c aktualisieren
Add camera core definition
1 parent 899712e commit 76a89ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/modcamera.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
#error Camera only works on boards configured with spiram
3636
#endif
3737

38+
#if MP_TASK_COREID == 0
39+
#define CONFIG_CAMERA_CORE0 1
40+
#elif MP_TASK_COREID == 1
41+
#define CONFIG_CAMERA_CORE1 1
42+
#endif
43+
3844
// Supporting functions
3945
void raise_micropython_error_from_esp_err(esp_err_t err) {
4046
switch (err) {

0 commit comments

Comments
 (0)