cleanup
authorStricted <info@stricted.net>
Thu, 12 Jan 2017 06:36:03 +0000 (07:36 +0100)
committerStricted <info@stricted.net>
Thu, 12 Jan 2017 06:36:03 +0000 (07:36 +0100)
.gitignore
SpeedportHybridControl.Implementations/util.cs
SpeedportHybridControl/MainWindow.xaml.cs

index 57a1574c4f5ccee529831e15bdf01c373ea5a845..b6e432fcadd21afb166758b15d6461bae3f2599a 100644 (file)
@@ -194,3 +194,5 @@ FakesAssemblies/
 
 # Visual Studio 6 workspace options file
 *.opt
+
+ErrorLog.txt
index 21344f69841d7508d402f08f8a20aa5870b889a4..8663b2c9a030160afabe55743ee72354c26cba32 100644 (file)
@@ -2,7 +2,6 @@
 using Newtonsoft.Json.Linq;
 using System;
 using System.Linq;
-using System.Net;
 using System.Net.NetworkInformation;
 using System.Net.Sockets;
 using System.Security.Cryptography;
@@ -14,7 +13,7 @@ using System.Xml;
 
 namespace SpeedportHybridControl.Implementations
 {
-    public static class util
+       public static class util
     {
         public static byte[] HexToByte(string hex)
         {
@@ -255,18 +254,8 @@ namespace SpeedportHybridControl.Implementations
                                {
                                        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;
                }
@@ -286,7 +275,7 @@ namespace SpeedportHybridControl.Implementations
                                }
                                catch (Exception)
                                {
-                                       new Thread(() => { MessageBox.Show("couldn't send Command to LTE Modul", "Confirmation", MessageBoxButton.OK, MessageBoxImage.Error); }).Start();
+                                       new Thread(() => { MessageBox.Show("couldn't send Command to the LTE Modul", "Confirmation", MessageBoxButton.OK, MessageBoxImage.Error); }).Start();
                                        LogManager.WriteToLog("couldn't send Command to LTE Modul");
                                }
                        }
@@ -305,7 +294,7 @@ namespace SpeedportHybridControl.Implementations
                         * AT^SYSCFGEX="03",3FFFFFFF,3,1,80040,,  # 800 | 2600
                         * AT^SYSCFGEX="03",3FFFFFFF,3,1,44,,     # 1800 | 2600
                         */
-                       string Command = string.Concat(@"AT^SYSCFGEX=""03"",3FFFFFFF,3,1,", (int)band, ",,", "\r");
+                       string Command = string.Concat("AT^SYSCFGEX=\"03\",3FFFFFFF,3,1,", (int)band, ",,\r");
 
                        sendCommandToLteModul(Command);
                }
index f88e7745cd5c14021bbc5e86d05e9f3165b73152..0bae916f7a0d8feef5b6e88f4bed92d1608e9dd6 100644 (file)
@@ -12,16 +12,6 @@ namespace SpeedportHybridControl
         public MainWindow()
         {
             InitializeComponent();
-                       /*
-                       if (util.checkLteModul())
-                       {
-                               MessageBox.Show("ABC", "Confirmation", MessageBoxButton.OK, MessageBoxImage.Error);
-                       }
-                       else
-                       {
-                               MessageBox.Show("DEF", "Confirmation", MessageBoxButton.OK, MessageBoxImage.Error);
-                       }
-                       */
                }
     }
 }