优化报警弹框关闭后回复绿灯

master
lhiven 10 months ago
parent 5bed89c1c4
commit 96b171d016

@ -50,8 +50,9 @@ namespace Rs.MotionPlat.Commom
if(warning) if(warning)
{ {
BuzzerManager.Instance.On(); BuzzerManager.Instance.On();
LightManger.Instance.SetStatus(ELightStatus.Red);
} }
LightManger.Instance.SetStatus(ELightStatus.Red);
string logInfo = $"{alarmInfo.CN}"; string logInfo = $"{alarmInfo.CN}";
LogHelper.Debug(logInfo); LogHelper.Debug(logInfo);
EButtonType ret = EButtonType.None; EButtonType ret = EButtonType.None;
@ -77,6 +78,7 @@ namespace Rs.MotionPlat.Commom
if (warning) if (warning)
{ {
BuzzerManager.Instance.Off(); BuzzerManager.Instance.Off();
LightManger.Instance.SetStatus(ELightStatus.Green);
} }
} }
return ret; return ret;

Loading…
Cancel
Save