Added to Nuget, included bug fixes found along the way
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user