Skip to content

Commit dfeaa71

Browse files
authored
Merge pull request #803 from jesserockz/jesserockz-2025-434
Use renamed sdkconfig option
2 parents c63baf6 + d5a80f4 commit dfeaa71

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

conversions/jpge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace jpge {
3030
return b;
3131
}
3232
// check if SPIRAM is enabled and allocate on SPIRAM if allocatable
33-
#if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
33+
#if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
3434
return heap_caps_malloc(nSize, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
3535
#else
3636
return NULL;

conversions/to_bmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ typedef struct {
5454
static void *_malloc(size_t size)
5555
{
5656
// check if SPIRAM is enabled and allocate on SPIRAM if allocatable
57-
#if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
57+
#if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
5858
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
5959
#endif
6060
// try allocating in internal memory

conversions/to_jpg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void *_malloc(size_t size)
3737
}
3838

3939
// check if SPIRAM is enabled and is allocatable
40-
#if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
40+
#if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
4141
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
4242
#endif
4343
return NULL;

examples/camera_example/sdkconfig.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ CONFIG_FREERTOS_HZ=1000
99
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
1010
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
1111

12+
CONFIG_SPIRAM=y
1213
CONFIG_SPIRAM_SUPPORT=y
1314
CONFIG_ESP32_SPIRAM_SUPPORT=y
1415
CONFIG_ESP32S2_SPIRAM_SUPPORT=y
1516
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
1617
CONFIG_SPIRAM_SPEED_80M=y
17-

0 commit comments

Comments
 (0)