Fied wrong config variable name portSend

This commit is contained in:
Glax 2023-12-14 19:39:44 +01:00
parent 3f85e9b0e7
commit b9d7ae2e20

View File

@ -14,7 +14,7 @@ public class OSCCollar
var jObject = JObject.Parse(File.ReadAllText(configFilePath));
string ip = jObject.GetValue("ip")?.ToObject<string>() ?? "127.0.0.1";
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 calibrationX = jObject.GetValue("calibrationX")?.ToObject<double>() ?? 0;
double calibrationY = jObject.GetValue("calibrationY")?.ToObject<double>() ?? 0;