mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 01:29:07 +03:00
stub to remove #ifndef EMSESP_STANDALONE
This commit is contained in:
@@ -16,9 +16,7 @@
|
||||
* 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
|
||||
@@ -48,11 +46,7 @@ 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);
|
||||
@@ -89,11 +83,8 @@ 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