mirror of
https://github.com/esphome/esphome.git
synced 2026-11-09 14:45:57 +00:00
[nextion] Move the writer in set_writer instead of copying it
This commit is contained in:
1 parent
62cef67191
commit
26302916c5
1 file changed
+1
-1
@@ -1059,7 +1059,7 @@ class Nextion final : public NextionBase, public PollingComponent, public uart::
|
||||
void set_brightness(float brightness) { this->brightness_ = brightness; }
|
||||
void update() override;
|
||||
void loop() override;
|
||||
void set_writer(const nextion_writer_t &writer) { this->writer_ = writer; }
|
||||
void set_writer(nextion_writer_t writer) { this->writer_ = std::move(writer); }
|
||||
|
||||
// This function has been deprecated
|
||||
void set_wait_for_ack(bool wait_for_ack);
|
||||
|
||||
Reference in new issue
Block a user