use int64 instead of int32 for CRC/HEC/FEC values (they can get quite large eq FEC... master
authorStricted <info@stricted.net>
Tue, 29 May 2018 16:31:06 +0000 (18:31 +0200)
committerStricted <info@stricted.net>
Tue, 29 May 2018 16:31:06 +0000 (18:31 +0200)
Change-Id: I2311f44c4d14727c9af356dd771a18ca8fdb9fb2

SpeedportHybridControl/Model/Line.cs
SpeedportHybridControl/PageModel/DslPageModel.cs

index ba18a6d31299e4180a0879cc91dda7b4f38c64e6..cb2372b1fc6b8b03a197d514c2bf83926024ee2b 100644 (file)
@@ -1,4 +1,6 @@
-namespace SpeedportHybridControl.Model
+using System;
+
+namespace SpeedportHybridControl.Model
 {
     class Line : SuperViewModel
     {
 {
     class Line : SuperViewModel
     {
         private string _dCodeword;
         private string _uInterleave;
         private string _dInterleave;
         private string _dCodeword;
         private string _uInterleave;
         private string _dInterleave;
-        private int _uCRC;
-        private int _dCRC;
-        private int _uHEC;
-        private int _dHEC;
-        private int _uFEC;
-        private int _dFEC;
+        private Int64 _uCRC;
+        private Int64 _dCRC;
+        private Int64 _uHEC;
+        private Int64 _dHEC;
+        private Int64 _uFEC;
+        private Int64 _dFEC;
 
         private double _uCRCsec;
         private double _dCRCsec;
 
         private double _uCRCsec;
         private double _dCRCsec;
             set { SetProperty(ref _dInterleave, value); }
         }
 
             set { SetProperty(ref _dInterleave, value); }
         }
 
-        public int uCRC
+        public Int64 uCRC
         {
             get { return _uCRC; }
             set { SetProperty(ref _uCRC, value); }
         }
 
         {
             get { return _uCRC; }
             set { SetProperty(ref _uCRC, value); }
         }
 
-        public int dCRC
+        public Int64 dCRC
         {
             get { return _dCRC; }
             set { SetProperty(ref _dCRC, value); }
         }
 
         {
             get { return _dCRC; }
             set { SetProperty(ref _dCRC, value); }
         }
 
-        public int uHEC
+        public Int64 uHEC
         {
             get { return _uHEC; }
             set { SetProperty(ref _uHEC, value); }
         }
 
         {
             get { return _uHEC; }
             set { SetProperty(ref _uHEC, value); }
         }
 
-        public int dHEC
+        public Int64 dHEC
         {
             get { return _dHEC; }
             set { SetProperty(ref _dHEC, value); }
         }
 
         {
             get { return _dHEC; }
             set { SetProperty(ref _dHEC, value); }
         }
 
-        public int uFEC
+        public Int64 uFEC
         {
             get { return _uFEC; }
             set { SetProperty(ref _uFEC, value); }
         }
 
         {
             get { return _uFEC; }
             set { SetProperty(ref _uFEC, value); }
         }
 
-        public int dFEC
+        public Int64 dFEC
         {
             get { return _dFEC; }
             set { SetProperty(ref _dFEC, value); }
         {
             get { return _dFEC; }
             set { SetProperty(ref _dFEC, value); }
index 8c5c131dc3a6e9a8710989b12f490e44ed6cd1df..b2c56a341e859a1329cbf327de623e238a24e4cd 100644 (file)
@@ -26,12 +26,12 @@ namespace SpeedportHybridControl.PageModel
         private string _lastHEC;
         private string _lastFEC;
 
         private string _lastHEC;
         private string _lastFEC;
 
-        private int lastdFEC;
-        private int lastuFEC;
-        private int lastdHEC;
-        private int lastuHEC;
-        private int lastdCRC;
-        private int lastuCRC;
+        private Int64 lastdFEC;
+        private Int64 lastuFEC;
+        private Int64 lastdHEC;
+        private Int64 lastuHEC;
+        private Int64 lastdCRC;
+        private Int64 lastuCRC;
         private DateTime lastReload;
 
         public Connection Connection
         private DateTime lastReload;
 
         public Connection Connection