1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 23:32:23 +01:00

add save_mode optional config, defaulting to 0

This commit is contained in:
Oliver Kleinecke
2025-02-14 12:28:26 +01:00
parent c841ae4fcc
commit b382e77d3c
4 changed files with 12 additions and 62 deletions

View File

@@ -9,8 +9,6 @@ static const char *TAG = "dynamic_lamp";
void DynamicLamp::setup() {
uint8_t i = 0;
bool valid = true;
this->save_mode_ = SAVE_MODE_NONE; //Currently only none & fram supported
if(this->save_mode_ == 0) {
for (i=0; i < 16; i++) {
this->active_lamps_[i].active = false;
@@ -40,6 +38,10 @@ void DynamicLamp::dump_config(){
}
}
void DynamicLamp::set_save_mode(uint8_t save_mode) {
this->save_mode_ = save_mode;
}
void DynamicLamp::set_lamp_count(uint8_t lamp_count) {
}