NEW:support led control

jira:[device page]

Change-Id: Id1ce67262a2c70e93425c0c79f2f3b2fd0a747a6
(cherry picked from commit b89aa86a8ecabbafdd5a4201f0cec24a9db87db8)
This commit is contained in:
tao wang
2024-12-03 22:13:11 +08:00
committed by Noisyfox
parent f2598e0265
commit 592734dbf7
3 changed files with 17 additions and 1 deletions

View File

@@ -4589,10 +4589,12 @@ void StatusPanel::on_lamp_switch(wxCommandEvent &event)
// do not update when timeout > 0
set_hold_count(this->m_switch_lamp_timeout);
obj->command_set_chamber_light(MachineObject::LIGHT_EFFECT::LIGHT_EFFECT_ON);
obj->command_set_chamber_light2(MachineObject::LIGHT_EFFECT::LIGHT_EFFECT_ON);
} else {
m_switch_lamp->SetValue(false);
set_hold_count(this->m_switch_lamp_timeout);
obj->command_set_chamber_light(MachineObject::LIGHT_EFFECT::LIGHT_EFFECT_OFF);
obj->command_set_chamber_light2(MachineObject::LIGHT_EFFECT::LIGHT_EFFECT_OFF);
}
}