mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
Clean up RAMAllocators in display related code (#9141)
This commit is contained in:
@@ -11,7 +11,7 @@ namespace display {
|
||||
static const char *const TAG = "display";
|
||||
|
||||
void DisplayBuffer::init_internal_(uint32_t buffer_length) {
|
||||
ExternalRAMAllocator<uint8_t> allocator(ExternalRAMAllocator<uint8_t>::ALLOW_FAILURE);
|
||||
RAMAllocator<uint8_t> allocator;
|
||||
this->buffer_ = allocator.allocate(buffer_length);
|
||||
if (this->buffer_ == nullptr) {
|
||||
ESP_LOGE(TAG, "Could not allocate buffer for display!");
|
||||
|
||||
Reference in New Issue
Block a user