Try fixing clang-tidy issues

This commit is contained in:
Nisarg Jhaveri 2024-06-21 14:22:31 +05:30
parent 7cef5a8ef8
commit 3ac3f0406f
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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() {