From ba98212b5c09a6163a1d517906e9b10b135e8cab Mon Sep 17 00:00:00 2001 From: Glax Date: Tue, 2 Jan 2024 22:24:47 +0100 Subject: [PATCH] Fix Json Import/Export --- OSCCollar/Config.cs | 14 +++++++------- OSCCollar/OSCCollar.cs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OSCCollar/Config.cs b/OSCCollar/Config.cs index b425c72..855f836 100644 --- a/OSCCollar/Config.cs +++ b/OSCCollar/Config.cs @@ -2,11 +2,11 @@ internal class Config { - internal string Ip = "127.0.0.1"; - internal int PortSend = 9000; - internal double Radius = 100; - internal double CalibrationX = 0; - internal double CalibrationY = 0; - internal double WalkStretchDeadzone = 0.1; - internal double RunStretch = 0.4; + public string Ip = "127.0.0.1"; + public int PortSend = 9000; + public double Radius = 100; + public double CalibrationX = 0; + public double CalibrationY = 0; + public double WalkStretchDeadzone = 0.1; + public double RunStretch = 0.4; } \ No newline at end of file diff --git a/OSCCollar/OSCCollar.cs b/OSCCollar/OSCCollar.cs index a50f5d6..40ddbe8 100644 --- a/OSCCollar/OSCCollar.cs +++ b/OSCCollar/OSCCollar.cs @@ -51,7 +51,7 @@ public partial class OSCCollar private OSCCollar(Config config, bool skipSetup = true) { this._config = config; - File.WriteAllText(ConfigFilePath, JsonConvert.SerializeObject(this._config)); + File.WriteAllText(ConfigFilePath, JsonConvert.SerializeObject(this._config, Formatting.Indented)); this.SetupGPSVars();