add PSRAM detecting
This commit is contained in:
@@ -23,7 +23,7 @@ set(SOURCES "audio/audio_codec.cc"
|
||||
"ota.cc"
|
||||
"settings.cc"
|
||||
"device_state_event.cc"
|
||||
"main.cc"
|
||||
|
||||
)
|
||||
|
||||
set(INCLUDE_DIRS "." "display" "audio" "protocols")
|
||||
|
||||
@@ -24,6 +24,13 @@ extern "C" void app_main(void)
|
||||
}
|
||||
ESP_ERROR_CHECK(ret);
|
||||
|
||||
// Detecting PSRAM
|
||||
if (esp_spiram_is_initialized()) {
|
||||
ESP_LOGI("PSRAM", "PSRAM is available and initialized.");
|
||||
} else {
|
||||
ESP_LOGE("PSRAM", "PSRAM not found or not initialized.");
|
||||
}
|
||||
|
||||
// Launch the application
|
||||
auto& app = Application::GetInstance();
|
||||
app.Start();
|
||||
|
||||
Reference in New Issue
Block a user