Skip to content

Commit

Permalink
Multiple ping commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sardylan committed Aug 30, 2019
1 parent 154aed9 commit 07b1839
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion LanPartyTool/LogEvent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using log4net.Appender;
using System.Threading.Tasks;
using log4net.Appender;
using log4net.Core;

namespace LanPartyTool
Expand Down
4 changes: 2 additions & 2 deletions LanPartyTool/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

[assembly: AssemblyVersion("0.9.4.0")]
[assembly: AssemblyFileVersion("0.9.4.0")]
[assembly: AssemblyVersion("0.9.5.0")]
[assembly: AssemblyFileVersion("0.9.5.0")]

[assembly: XmlConfigurator(ConfigFile = "log4net.config")]
[assembly: Guid("94403695-D3D3-4A0C-A7A8-A8B9FAAF5E9B")]
Expand Down
6 changes: 6 additions & 0 deletions LanPartyTool/agent/SerialPortReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public void Stop()
}

private void ReadData(object sender, SerialDataReceivedEventArgs e)
{
// new Thread(ReadDataLoop).Start();
ReadDataLoop();
}

private void ReadDataLoop()
{
Logger.Debug("Reading data");

Expand Down
1 change: 1 addition & 0 deletions LanPartyTool/log4net.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyyMMdd HH:mm:ss.fff} %5level [%logger{1}] %message%newline" />
</layout>
<threshold value="INFO" />
</appender>
<appender name="file" type="log4net.Appender.RollingFileAppender">
<file value="lanpartytool.log" />
Expand Down

0 comments on commit 07b1839

Please sign in to comment.