mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 09:09:25 +03:00
move some vectors to psram, fix syslog start/stop
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "../core/telegram.h"
|
||||
#ifndef EMSESP_STANDALONE
|
||||
#include <esp32-psram.h>
|
||||
#endif
|
||||
|
||||
#ifndef WebCustomEntityService_h
|
||||
#define WebCustomEntityService_h
|
||||
@@ -45,7 +48,11 @@ class CustomEntityItem {
|
||||
|
||||
class WebCustomEntity {
|
||||
public:
|
||||
#ifndef EMSESP_STANDALONE
|
||||
std::list<CustomEntityItem, AllocatorPSRAM<CustomEntityItem>> customEntityItems;
|
||||
#else
|
||||
std::list<CustomEntityItem> customEntityItems;
|
||||
#endif
|
||||
|
||||
static void read(WebCustomEntity & webEntity, JsonObject root);
|
||||
static StateUpdateResult update(JsonObject root, WebCustomEntity & webEntity);
|
||||
@@ -82,8 +89,11 @@ class WebCustomEntityService : public StatefulService<WebCustomEntity> {
|
||||
|
||||
void getEntities(AsyncWebServerRequest * request);
|
||||
|
||||
#ifndef EMSESP_STANDALONE
|
||||
std::list<CustomEntityItem, AllocatorPSRAM<CustomEntityItem>> * customEntityItems_; // pointer to the list of entity items
|
||||
#else
|
||||
std::list<CustomEntityItem> * customEntityItems_; // pointer to the list of entity items
|
||||
|
||||
#endif
|
||||
bool ha_registered_ = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user