mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Update function signature
This commit is contained in:
parent
784d1901dc
commit
0c56fccb90
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue