From: Stricted Date: Tue, 29 May 2018 16:31:06 +0000 (+0200) Subject: use int64 instead of int32 for CRC/HEC/FEC values (they can get quite large eq FEC... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;p=GitHub%2FStricted%2FSpeedportHybridControl.git use int64 instead of int32 for CRC/HEC/FEC values (they can get quite large eq FEC=2980353612) Change-Id: I2311f44c4d14727c9af356dd771a18ca8fdb9fb2 --- diff --git a/SpeedportHybridControl/Model/Line.cs b/SpeedportHybridControl/Model/Line.cs index ba18a6d..cb2372b 100644 --- a/SpeedportHybridControl/Model/Line.cs +++ b/SpeedportHybridControl/Model/Line.cs @@ -1,4 +1,6 @@ -namespace SpeedportHybridControl.Model +using System; + +namespace SpeedportHybridControl.Model { class Line : SuperViewModel { @@ -20,12 +22,12 @@ 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; @@ -142,37 +144,37 @@ set { SetProperty(ref _dInterleave, value); } } - public int uCRC + public Int64 uCRC { get { return _uCRC; } set { SetProperty(ref _uCRC, value); } } - public int dCRC + public Int64 dCRC { get { return _dCRC; } set { SetProperty(ref _dCRC, value); } } - public int uHEC + public Int64 uHEC { get { return _uHEC; } set { SetProperty(ref _uHEC, value); } } - public int dHEC + public Int64 dHEC { get { return _dHEC; } set { SetProperty(ref _dHEC, value); } } - public int uFEC + public Int64 uFEC { get { return _uFEC; } set { SetProperty(ref _uFEC, value); } } - public int dFEC + public Int64 dFEC { get { return _dFEC; } set { SetProperty(ref _dFEC, value); } diff --git a/SpeedportHybridControl/PageModel/DslPageModel.cs b/SpeedportHybridControl/PageModel/DslPageModel.cs index 8c5c131..b2c56a3 100644 --- a/SpeedportHybridControl/PageModel/DslPageModel.cs +++ b/SpeedportHybridControl/PageModel/DslPageModel.cs @@ -26,12 +26,12 @@ namespace SpeedportHybridControl.PageModel 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