projects
/
GitHub
/
Stricted
/
SpeedportHybridControl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write errorlog on ping only in debug build
[GitHub/Stricted/SpeedportHybridControl.git]
/
SpeedportHybridControl.Implementations
/
util.cs
diff --git
a/SpeedportHybridControl.Implementations/util.cs
b/SpeedportHybridControl.Implementations/util.cs
index 74ee8388f5bd22673c9824b71c106855b97f8a11..4c807bbcae054159f6a20a4500d2a0a9cbcac13d 100644
(file)
--- a/
SpeedportHybridControl.Implementations/util.cs
+++ b/
SpeedportHybridControl.Implementations/util.cs
@@
-249,14
+249,24
@@
namespace SpeedportHybridControl.Implementations
Ping ping = new Ping();
try
{
Ping ping = new Ping();
try
{
- PingReply reply = ping.Send("172.10.10.
2
", 2);
+ PingReply reply = ping.Send("172.10.10.
1
", 2);
if (reply.Status == IPStatus.Success)
{
return true;
}
if (reply.Status == IPStatus.Success)
{
return true;
}
+#if DEBUG
+ else
+ {
+ LogManager.WriteToLog("unable to reach LTE Modul");
+ }
+#endif
+ }
+ catch (PingException) {
+#if DEBUG
+ LogManager.WriteToLog("unable to reach LTE Modul");
+#endif
}
}
- catch (PingException) { }
return false;
}
return false;
}
@@
-276,7
+286,7
@@
namespace SpeedportHybridControl.Implementations
}
catch (Exception)
{
}
catch (Exception)
{
- new Thread(() => { MessageBox.Show("couldn't send Command to LTE Modul", MessageBoxButton.OK, MessageBoxImage.Error); }).Start();
+ new Thread(() => { MessageBox.Show("couldn't send Command to LTE Modul",
"Confirmation",
MessageBoxButton.OK, MessageBoxImage.Error); }).Start();
LogManager.WriteToLog("couldn't send Command to LTE Modul");
}
}
LogManager.WriteToLog("couldn't send Command to LTE Modul");
}
}