mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
062f223876c023cfed04b48140c6841019c0d0ca
RAMAllocator with default flags is stateless — it's just a dispatch wrapper over heap_caps_malloc/realloc/free. Remove the stored member from SpiRamAllocator, using stack-local instances at each call site. Also make RAMAllocator constructors constexpr so the compiler can fully evaluate flag logic at compile time. Note: SpiRamAllocator was initialized with RAMAllocator::NONE (0), which is equivalent to default construction since the constructor preserves the default ALLOC_INTERNAL | ALLOC_EXTERNAL flags when no valid allocation flags are provided. Co-Authored-By: J. Nick Koston <nick@koston.org>
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
516 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
