mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
use vector instead of dequeue for memory optimization
This commit is contained in:
@@ -29,7 +29,7 @@ static_assert(uuid::console::thread_safe, "uuid-console must be thread-safe");
|
|||||||
namespace emsesp {
|
namespace emsesp {
|
||||||
|
|
||||||
// Static member definitions
|
// Static member definitions
|
||||||
std::deque<std::unique_ptr<EMSdevice>> EMSESP::emsdevices{};
|
std::vector<std::unique_ptr<EMSdevice>> EMSESP::emsdevices{};
|
||||||
std::vector<EMSESP::Device_record> EMSESP::device_library_;
|
std::vector<EMSESP::Device_record> EMSESP::device_library_;
|
||||||
uuid::log::Logger EMSESP::logger_{F_(emsesp), uuid::log::Facility::KERN};
|
uuid::log::Logger EMSESP::logger_{F_(emsesp), uuid::log::Facility::KERN};
|
||||||
uint16_t EMSESP::watch_id_ = WATCH_ID_NONE;
|
uint16_t EMSESP::watch_id_ = WATCH_ID_NONE;
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ class EMSESP {
|
|||||||
static void scan_devices();
|
static void scan_devices();
|
||||||
static void clear_all_devices();
|
static void clear_all_devices();
|
||||||
|
|
||||||
static std::deque<std::unique_ptr<EMSdevice>> emsdevices;
|
static std::vector<std::unique_ptr<EMSdevice>> emsdevices;
|
||||||
|
|
||||||
// services
|
// services
|
||||||
static Mqtt mqtt_;
|
static Mqtt mqtt_;
|
||||||
|
|||||||
Reference in New Issue
Block a user