add psram so standalone compiles

This commit is contained in:
proddy
2026-09-05 11:02:20 +02:00
parent 928e1e7a69
commit 204ad1f8c9
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@
NativeConsole Serial; NativeConsole Serial;
EspClass ESP;
ETHClass ETH; ETHClass ETH;
WiFiClass WiFi; WiFiClass WiFi;
+9
View File
@@ -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;