|
|
@@ -284,13 +284,13 @@ static esp_err_t cam_dma_config(const camera_config_t *config)
|
|
|
if (CAMERA_FB_IN_DRAM == config->fb_location) {
|
|
|
_caps |= MALLOC_CAP_INTERNAL;
|
|
|
} else {
|
|
|
- _caps |= MALLOC_CAP_SPIRAM;
|
|
|
+ _caps |= MALLOC_CAP_DEFAULT;
|
|
|
}
|
|
|
for (int x = 0; x < cam_obj->frame_cnt; x++) {
|
|
|
cam_obj->frames[x].dma = NULL;
|
|
|
cam_obj->frames[x].fb_offset = 0;
|
|
|
cam_obj->frames[x].en = 0;
|
|
|
- ESP_LOGI(TAG, "Allocating %d Byte frame buffer in %s", alloc_size, _caps & MALLOC_CAP_SPIRAM ? "PSRAM" : "OnBoard RAM");
|
|
|
+ ESP_LOGI(TAG, "Allocating %d Byte frame buffer in %s", alloc_size, _caps & MALLOC_CAP_DEFAULT ? "PSRAM" : "OnBoard RAM");
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 0)
|
|
|
// In IDF v4.2 and earlier, memory returned by heap_caps_aligned_alloc must be freed using heap_caps_aligned_free.
|
|
|
// And heap_caps_aligned_free is deprecated on v4.3.
|