platform: arduno: mqtt: fix mqtt build
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-02-18 19:36:43 +01:00
parent a598d62523
commit e994f1f20c
3 changed files with 8 additions and 6 deletions

View File

@ -37,8 +37,8 @@ struct Variant {
CRGB asRGB() const;
int asInt() const;
bool asBool() const;
template<typename T> T* as() const {
return (T*)m_value.asPointer;
template<typename T> const T& as() const {
return *static_cast<const T*>(m_value.asPointer);
}
private:
@ -183,6 +183,8 @@ class ConfigTaskMixin : public virtual Loopable {
}
}
void loop() override {}
virtual void handleConfigChange(const InputEvent& evt) {}
};