mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Activate owning-memory clang-tidy check (#1891)
* Activate owning-memory clang-tidy check * Lint * Lint * Fix issue with new NfcTag constructor * Update pointers for number and select * Add back the NOLINT to display buffer * Fix merge * DSMR fixes * Nextion fixes * Fix pipsolar * Fix lwip socket * Format * Change socket fix Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "tm1651.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace tm1651 {
|
||||
@@ -19,7 +20,7 @@ void TM1651Display::setup() {
|
||||
uint8_t clk = clk_pin_->get_pin();
|
||||
uint8_t dio = dio_pin_->get_pin();
|
||||
|
||||
battery_display_ = new TM1651(clk, dio);
|
||||
battery_display_ = make_unique<TM1651>(clk, dio);
|
||||
battery_display_->init();
|
||||
battery_display_->clearDisplay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user