Update function signature

This commit is contained in:
Niclas Larsson 2024-09-16 21:00:54 +02:00
parent 784d1901dc
commit 0c56fccb90
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ uint16_t shelly_dimmer_checksum(const uint8_t *buf, int len) {
return std::accumulate<decltype(buf), uint16_t>(buf, buf + len, 0);
}
void ShellyDimmer::is_running_configured_version() const {
bool ShellyDimmer::is_running_configured_version() const {
return this->version_major_ == USE_SHD_FIRMWARE_MAJOR_VERSION &&
this->version_minor_ == USE_SHD_FIRMWARE_MINOR_VERSION;

View file

@ -20,7 +20,7 @@ class ShellyDimmer : public PollingComponent, public light::LightOutput, public
public:
float get_setup_priority() const override { return setup_priority::LATE; }
void is_running_configured_version() const;
bool is_running_configured_version() const;
void handle_firmware();
void setup() override;
void update() override;