diff --git a/Elwig/Helpers/Weighing/Scale.cs b/Elwig/Helpers/Weighing/Scale.cs index 97850e3..4a9f0f1 100644 --- a/Elwig/Helpers/Weighing/Scale.cs +++ b/Elwig/Helpers/Weighing/Scale.cs @@ -24,7 +24,7 @@ namespace Elwig.Helpers.Weighing { int? limit = config.Limit != null ? int.Parse(config.Limit) : null; if (config.Type == "SysTec-IT") { return new SysTecITScale(config.Id, config.Model!, config.Connection!, config.Empty, config.Filling, limit, config.Log); - } else if (config.Type == "Schember-Evt") { + } else if (config.Type == "Schember-Async") { return new SchemberEventScale(config.Id, config.Model!, config.Connection!, config.Empty, config.Filling, limit, config.Log); } else { throw new ArgumentException($"Invalid scale type: \"{config.Type}\""); diff --git a/Installer/Files/config.ini b/Installer/Files/config.ini index feb132c..ae5e46f 100644 --- a/Installer/Files/config.ini +++ b/Installer/Files/config.ini @@ -11,8 +11,8 @@ file = database.sqlite3 ;log = db.log ;[scale.1] -;type = systec -;model = IT3000A +;type = SysTec-IT +;model = IT3000 ;connection = serial://COM1:9600,8,N,1 ;empty = COM2:RTS:1000 ;filling = DTR @@ -22,8 +22,8 @@ file = database.sqlite3 ;log = waage.log ;[scale.B] -;type = Type -;model = Model +;type = Schember-Async +;model = L320 ;connection = tcp://10.0.0.1:1234 ;empty = OUT1:3000 ;filling = OUT2