............

master
Roman Kretschmer 2 years ago
parent 43f27bbbd9
commit 4df82f668f

@ -27,6 +27,7 @@ class ShowcaseComponent : public i2c::I2CDevice, public Component {
void write_state(State s){ void write_state(State s){
ESP_LOGI(TAG, "Write_state"); ESP_LOGI(TAG, "Write_state");
this->s_ = s;
switch(s) { switch(s) {
case(On): case(On):
ESP_LOGI(TAG, "Set to On"); ESP_LOGI(TAG, "Set to On");
@ -38,7 +39,6 @@ class ShowcaseComponent : public i2c::I2CDevice, public Component {
this->lower_->set_level(0.0); this->lower_->set_level(0.0);
break; break;
case(Auto): case(Auto):
this->s_ = Auto;
ESP_LOGI(TAG, "Set to Auto"); ESP_LOGI(TAG, "Set to Auto");
break; break;
} }

Loading…
Cancel
Save