Skip to content

Commit fa31a40

Browse files
authored
V2.2.50214.1
不具合修正
1 parent e60a3f6 commit fa31a40

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

SerialOutputEx(AtsEX)/PluginMain(AtsEX).cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ public override TickResult Tick(TimeSpan elapsed)
704704
str_send_latch = str_send;
705705

706706
//BC変更シーケンス
707-
int brake_notch = handles.BrakeNotch;
707+
/*int brake_notch = handles.BrakeNotch;
708708
if (brake_notch != brake_notch_latch)
709709
{
710710
if (handles.BrakeNotch == 0)
@@ -726,7 +726,7 @@ public override TickResult Tick(TimeSpan elapsed)
726726
}
727727
}
728728
brake_notch_latch = brake_notch;
729-
}
729+
}*/
730730
}
731731
return new ExtensionTickResult();
732732

@@ -868,6 +868,22 @@ private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e)
868868
{
869869
int.TryParse(indata.Substring(3), out targetBcValue);
870870
}
871+
if (indata.StartsWith("AAB"))
872+
{
873+
int.TryParse(indata.Substring(4), out int eventBcChange);
874+
Console.Write("BC" + eventBcChange.ToString() + "\r\n");
875+
//BC変更シーケンス
876+
if (eventBcChange == 1)
877+
{
878+
Patch.Invoked += BcChangeHandler;
879+
Console.Write("BC変更 設定\r\n");
880+
}
881+
else
882+
{
883+
Patch.Invoked -= BcChangeHandler;
884+
Console.Write("BC変更 解除\r\n");
885+
}
886+
}
871887
}
872888
catch
873889
{

SerialOutputEx(AtsEX)/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
3232
// 既定値にすることができます:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.1.50202.1")]
34+
[assembly: AssemblyVersion("1.2.50214.1")]

SerialOutputEx(BveEX)/PluginMain(BveEX).cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ public override void Tick(TimeSpan elapsed)
703703

704704

705705
//BC変更シーケンス
706-
int brake_notch = handles.BrakeNotch;
706+
/*int brake_notch = handles.BrakeNotch;
707707
if (brake_notch != brake_notch_latch)
708708
{
709709
if (handles.BrakeNotch == 0)
@@ -725,7 +725,7 @@ public override void Tick(TimeSpan elapsed)
725725
}
726726
}
727727
brake_notch_latch = brake_notch;
728-
}
728+
}*/
729729

730730

731731
}
@@ -869,6 +869,22 @@ private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e)
869869
{
870870
int.TryParse(indata.Substring(3), out targetBcValue);
871871
}
872+
if (indata.StartsWith("AAB"))
873+
{
874+
int.TryParse(indata.Substring(4), out int eventBcChange);
875+
Console.Write("BC" + eventBcChange.ToString() + "\r\n");
876+
//BC変更シーケンス
877+
if (eventBcChange == 1)
878+
{
879+
Patch.Invoked += BcChangeHandler;
880+
Console.Write("BC変更 設定\r\n");
881+
}
882+
else
883+
{
884+
Patch.Invoked -= BcChangeHandler;
885+
Console.Write("BC変更 解除\r\n");
886+
}
887+
}
872888
}
873889
catch
874890
{

SerialOutputEx(BveEX)/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
3232
// 既定値にすることができます:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.1.50202.1")]
34+
[assembly: AssemblyVersion("2.2.50214.1")]

0 commit comments

Comments
 (0)