xbee 값 설정기능 추가
This commit is contained in:
@@ -47,8 +47,11 @@ namespace Project
|
||||
// XBee 연결
|
||||
lock (connectobj)
|
||||
{
|
||||
ConnectSerialPort(PUB.XBE, PUB.setting.Port_XBE, PUB.setting.Baud_XBE,
|
||||
if (VAR.BOOL[eVarBool.DISABLE_AUTOCONN_XBEE] == false)
|
||||
{
|
||||
ConnectSerialPort(PUB.XBE, PUB.setting.Port_XBE, PUB.setting.Baud_XBE,
|
||||
eVarTime.LastConn_XBE, eVarTime.LastConnTry_XBE, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +75,7 @@ namespace Project
|
||||
else if (PUB.BMS.IsValid == false)
|
||||
{
|
||||
var ts = VAR.TIME.RUN(eVarTime.LastConnTry_BAT);
|
||||
if (ts.TotalSeconds > ( Math.Max(10,PUB.setting.interval_bms) * 2.5))
|
||||
if (ts.TotalSeconds > (Math.Max(10, PUB.setting.interval_bms) * 2.5))
|
||||
{
|
||||
this.BeginInvoke(new Action(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user