mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
NEW:support led control
jira:[device page] Change-Id: Id1ce67262a2c70e93425c0c79f2f3b2fd0a747a6 (cherry picked from commit b89aa86a8ecabbafdd5a4201f0cec24a9db87db8)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user