mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-13 05:34:34 +00:00
add psram so standalone compiles
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
NativeConsole Serial;
|
||||
|
||||
EspClass ESP;
|
||||
ETHClass ETH;
|
||||
WiFiClass WiFi;
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@
|
||||
#include "WString.h"
|
||||
#include "Network.h"
|
||||
|
||||
// stub of Arduino-ESP32's EspClass, holding only what is called outside of #ifndef EMSESP_STANDALONE
|
||||
class EspClass {
|
||||
public:
|
||||
size_t getPsramSize() {
|
||||
return 0; // standalone has no PSRAM
|
||||
}
|
||||
};
|
||||
|
||||
extern EspClass ESP;
|
||||
extern ETHClass ETH;
|
||||
extern WiFiClass WiFi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user