From 6c21db7bc3acefee042de80602a255e388f082a6 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Wed, 1 Sep 2021 14:00:41 +0200 Subject: [PATCH] Make Component parent class public. --- components/xiaomi_bslamp2/light_hal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }