Fied wrong config variable name portSend
This commit is contained in:
parent
3f85e9b0e7
commit
b9d7ae2e20
@ -14,7 +14,7 @@ public class OSCCollar
|
|||||||
var jObject = JObject.Parse(File.ReadAllText(configFilePath));
|
var jObject = JObject.Parse(File.ReadAllText(configFilePath));
|
||||||
string ip = jObject.GetValue("ip")?.ToObject<string>() ?? "127.0.0.1";
|
string ip = jObject.GetValue("ip")?.ToObject<string>() ?? "127.0.0.1";
|
||||||
int portReceive = jObject.GetValue("portReceive")?.ToObject<int>() ?? 9001;
|
int portReceive = jObject.GetValue("portReceive")?.ToObject<int>() ?? 9001;
|
||||||
int portSend = jObject.GetValue("portReceive")?.ToObject<int>() ?? 9000;
|
int portSend = jObject.GetValue("portSend")?.ToObject<int>() ?? 9000;
|
||||||
double radius = jObject.GetValue("radius")?.ToObject<double>() ?? 100;
|
double radius = jObject.GetValue("radius")?.ToObject<double>() ?? 100;
|
||||||
double calibrationX = jObject.GetValue("calibrationX")?.ToObject<double>() ?? 0;
|
double calibrationX = jObject.GetValue("calibrationX")?.ToObject<double>() ?? 0;
|
||||||
double calibrationY = jObject.GetValue("calibrationY")?.ToObject<double>() ?? 0;
|
double calibrationY = jObject.GetValue("calibrationY")?.ToObject<double>() ?? 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user