diff --git a/components/xiaomi_bslamp2/light_hal.h b/components/xiaomi_bslamp2/light_hal.h index ee0ac91..1d7eb2a 100644 --- a/components/xiaomi_bslamp2/light_hal.h +++ b/components/xiaomi_bslamp2/light_hal.h @@ -36,7 +36,7 @@ class GPIOOutputValues { void log(const char *prefix) { ESP_LOGD(TAG, "%s: RGB=[%f,%f,%f], white=%f", prefix, red, green, blue, white); } }; -class LightHAL : Component, public GPIOOutputValues { +class LightHAL : public Component, public GPIOOutputValues { public: void set_red_pin(ledc::LEDCOutput *pin) { red_pin_ = pin; } void set_green_pin(ledc::LEDCOutput *pin) { green_pin_ = pin; }