Added to Nuget, included bug fixes found along the way
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
public abstract class BaseGpsInfo {
|
||||
public GpsCoordinateSystem CoordinateSystem { get; set; } = GpsCoordinateSystem.GeoEtrs89;
|
||||
|
||||
public int ReadFrequenty { get; set; }
|
||||
public int ReadFrequency { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
namespace GpsClient2.Model {
|
||||
public class ComPortInfo : BaseGpsInfo {
|
||||
public string ComPort { get; set; } = "ComPort1";
|
||||
public int BaudRate { get; set; } = 9600;
|
||||
|
||||
public ComPortInfo() {
|
||||
ReadFrequenty = 1000;
|
||||
ReadFrequency = 1000;
|
||||
}
|
||||
|
||||
public ComPortInfo(string comPort, int readFrequenty = 1000) {
|
||||
public ComPortInfo(string comPort, int baudRate = 9600, int readFrequency = 1000) {
|
||||
ComPort = comPort;
|
||||
ReadFrequenty = readFrequenty;
|
||||
BaudRate = baudRate;
|
||||
ReadFrequency = readFrequency;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
public int Timeout { get; set; } = 1000;
|
||||
|
||||
public WindowsLocationApiInfo() {
|
||||
ReadFrequenty = 0;
|
||||
ReadFrequency = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user