mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-13 13:44:10 +00:00
add psram so standalone compiles
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
NativeConsole Serial;
|
NativeConsole Serial;
|
||||||
|
|
||||||
|
EspClass ESP;
|
||||||
ETHClass ETH;
|
ETHClass ETH;
|
||||||
WiFiClass WiFi;
|
WiFiClass WiFi;
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,15 @@
|
|||||||
#include "WString.h"
|
#include "WString.h"
|
||||||
#include "Network.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 ETHClass ETH;
|
||||||
extern WiFiClass WiFi;
|
extern WiFiClass WiFi;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user