BMS 를 RS232 클래스에서 폴링방식 전용 클래스로 변경

BMS 정보중 현재 사용 전류와 와트를 표시함
사용전류를 통해서 충전여부를 자동 판다시키고, 해당 값은 Manual Charge 플래그에 설정함.
This commit is contained in:
ChiKyun Kim
2025-12-18 14:44:00 +09:00
parent b62cd5f52e
commit d777adc219
11 changed files with 824 additions and 213 deletions

View File

@@ -256,11 +256,8 @@ namespace Project.StateMachine
if (handler != null)
{
var args = new StepChangeEventArgs(OldStep, newstep_);
System.Threading.ThreadPool.QueueUserWorkItem(_ =>
{
try { handler(this, args); }
catch { /* 이벤트 핸들러 예외 무시 */ }
});
try { handler(this, args); }
catch { /* 이벤트 핸들러 예외 무시 */ }
}
}
else
@@ -378,11 +375,8 @@ namespace Project.StateMachine
if (handler != null)
{
var args = new StepChangeEventArgs(ostep, _step);
System.Threading.ThreadPool.QueueUserWorkItem(_ =>
{
try { handler(this, args); }
catch { /* 이벤트 핸들러 예외 무시 */ }
});
try { handler(this, args); }
catch { /* 이벤트 핸들러 예외 무시 */ }
}
} //171214