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:
@@ -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) {
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user