Browse Source

Make Component parent class public.

pull/52/merge
Maurice Makaay 3 years ago
parent
commit
6c21db7bc3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/xiaomi_bslamp2/light_hal.h

+ 1
- 1
components/xiaomi_bslamp2/light_hal.h View File

@ -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); } 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: public:
void set_red_pin(ledc::LEDCOutput *pin) { red_pin_ = pin; } void set_red_pin(ledc::LEDCOutput *pin) { red_pin_ = pin; }
void set_green_pin(ledc::LEDCOutput *pin) { green_pin_ = pin; } void set_green_pin(ledc::LEDCOutput *pin) { green_pin_ = pin; }


Loading…
Cancel
Save