fix psram always init

This commit is contained in:
me-no-dev
2020-05-19 01:56:52 +03:00
parent 895fba0ded
commit b499befa9b
2 changed files with 11 additions and 6 deletions

View File

@ -19,6 +19,17 @@
extern "C" {
#endif
#include "sdkconfig.h"
#ifndef BOARD_HAS_PSRAM
#ifdef CONFIG_SPIRAM_SUPPORT
#undef CONFIG_SPIRAM_SUPPORT
#endif
#ifdef CONFIG_SPIRAM
#undef CONFIG_SPIRAM
#endif
#endif
bool psramInit();
bool psramFound();