Bugfix for ergometer crash

This commit is contained in:
2015-10-20 17:06:50 +02:00
parent 1c83e6b086
commit 232639e3e2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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]);
+1 -1
View File
@@ -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; }