enable psram
This commit is contained in:
@@ -36,15 +36,6 @@ extern "C" void app_main(void) {
|
||||
init_wires();
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
|
||||
char* str = (char*) heap_caps_malloc(10 * sizeof(char), MALLOC_CAP_SPIRAM);
|
||||
if (str == nullptr) {
|
||||
ESP_LOGI("main", "aww.");
|
||||
} else {
|
||||
sprintf(str, "mitchell");
|
||||
ESP_LOGI("main", "Hello %s", str);
|
||||
heap_caps_free(str);
|
||||
}
|
||||
|
||||
// set_recording_source(stdout, false);
|
||||
FILE* record_file = fopen(MOUNT_POINT "/record.txt", "w");
|
||||
if (record_file == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user