add missing overrides (#7231)

This commit is contained in:
tomaszduda23 2024-08-09 13:15:25 +02:00 committed by GitHub
parent a47a17d7e7
commit b43c5b851a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class LVGLNumber : public number::Number {
}
protected:
void control(float value) {
void control(float value) override {
if (this->control_lambda_ != nullptr)
this->control_lambda_(value);
else

View File

@ -19,7 +19,7 @@ class LVGLSwitch : public switch_::Switch {
}
protected:
void write_state(bool value) {
void write_state(bool value) override {
if (this->state_lambda_ != nullptr)
this->state_lambda_(value);
else

View File

@ -19,7 +19,7 @@ class LVGLText : public text::Text {
}
protected:
void control(const std::string &value) {
void control(const std::string &value) override {
if (this->control_lambda_ != nullptr)
this->control_lambda_(value);
else

View File

@ -13,7 +13,7 @@ class SpiLedStrip : public light::AddressableLight,
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
spi::DATA_RATE_1MHZ> {
public:
void setup() { this->spi_setup(); }
void setup() override { this->spi_setup(); }
int32_t size() const override { return this->num_leds_; }
@ -43,7 +43,7 @@ class SpiLedStrip : public light::AddressableLight,
memset(this->buf_, 0, 4);
}
void dump_config() {
void dump_config() override {
esph_log_config(TAG, "SPI LED Strip:");
esph_log_config(TAG, " LEDs: %d", this->num_leds_);
if (this->data_rate_ >= spi::DATA_RATE_1MHZ)