mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 14:34:54 +01:00
Try fixing clang-tidy issues
This commit is contained in:
parent
7cef5a8ef8
commit
3ac3f0406f
2 changed files with 4 additions and 4 deletions
|
@ -13,10 +13,10 @@ WaveshareEPaper4P26In::WaveshareEPaper4P26In() : WaveshareEPaper() { reset_durat
|
|||
void WaveshareEPaper4P26In::init_display_async_(bool fast_update, const std::function<void()> &&f) {
|
||||
// Reset the display
|
||||
this->reset_();
|
||||
wait_until_idle_async_([this, fast_update, f(std::move(f))] {
|
||||
wait_until_idle_async_([this, fast_update, f] {
|
||||
this->command(0x12); // SWRESET
|
||||
|
||||
wait_until_idle_async_([this, fast_update, f(std::move(f))] {
|
||||
wait_until_idle_async_([this, fast_update, f] {
|
||||
// Use the internal temperature sensor
|
||||
this->command(0x18);
|
||||
this->data(0x80);
|
||||
|
@ -66,7 +66,7 @@ void WaveshareEPaper4P26In::init_display_async_(bool fast_update, const std::fun
|
|||
this->data(0x00);
|
||||
|
||||
if (fast_update) {
|
||||
this->wait_until_idle_async_([this, f(std::move(f))] {
|
||||
this->wait_until_idle_async_([this, f] {
|
||||
this->command(0x1A);
|
||||
this->data(0x5A);
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ void WaveshareEPaperBase::wait_until_idle_async_(const std::function<void()> &&f
|
|||
return f();
|
||||
}
|
||||
|
||||
this->set_timeout(20, [this, f(std::move(f))] { this->wait_until_idle_async_(std::move(f)); });
|
||||
this->set_timeout(20, [this, f] { this->wait_until_idle_async_(std::move(f)); });
|
||||
}
|
||||
|
||||
void WaveshareEPaperBase::update() {
|
||||
|
|
Loading…
Reference in a new issue