NEW:support led control

jira:[device page]

Change-Id: Id1ce67262a2c70e93425c0c79f2f3b2fd0a747a6
(cherry picked from commit b89aa86a8ecabbafdd5a4201f0cec24a9db87db8)
This commit is contained in:
tao wang authored and Noisyfox committed 2025-08-26 20:12:52 +08:00
1 parent f2598e0265
commit 592734dbf7
3 files changed
+17 -1

No files matched your search

+2
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);
}
}