Bugfix for ergometer crash
This commit is contained in:
@@ -70,7 +70,7 @@ namespace ErgometerLibrary
|
||||
string[] status = input.Split(delimiter);
|
||||
if (status.Length != 8 && status.Length != 9)
|
||||
{
|
||||
return null;
|
||||
throw new FormatException("Error in Meting: Arguments do not match");
|
||||
}
|
||||
int heartbeat = int.Parse(status[0]);
|
||||
int rpm = int.Parse(status[1]);
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace ErgometerLibrary
|
||||
public ValueType Value { get; set; }
|
||||
public RequestType Request { get; set; }
|
||||
public LengthType Length { get; set; }
|
||||
public double SetValue { get; set; }
|
||||
public int SetValue { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public bool IsDoctor { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user