............
This commit is contained in:
@@ -27,6 +27,7 @@ class ShowcaseComponent : public i2c::I2CDevice, public Component {
|
||||
|
||||
void write_state(State s){
|
||||
ESP_LOGI(TAG, "Write_state");
|
||||
this->s_ = s;
|
||||
switch(s) {
|
||||
case(On):
|
||||
ESP_LOGI(TAG, "Set to On");
|
||||
@@ -38,7 +39,6 @@ class ShowcaseComponent : public i2c::I2CDevice, public Component {
|
||||
this->lower_->set_level(0.0);
|
||||
break;
|
||||
case(Auto):
|
||||
this->s_ = Auto;
|
||||
ESP_LOGI(TAG, "Set to Auto");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user