Weighing: Change Schember-Evt to Schember-Async
This commit is contained in:
@ -24,7 +24,7 @@ namespace Elwig.Helpers.Weighing {
|
|||||||
int? limit = config.Limit != null ? int.Parse(config.Limit) : null;
|
int? limit = config.Limit != null ? int.Parse(config.Limit) : null;
|
||||||
if (config.Type == "SysTec-IT") {
|
if (config.Type == "SysTec-IT") {
|
||||||
return new SysTecITScale(config.Id, config.Model!, config.Connection!, config.Empty, config.Filling, limit, config.Log);
|
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);
|
return new SchemberEventScale(config.Id, config.Model!, config.Connection!, config.Empty, config.Filling, limit, config.Log);
|
||||||
} else {
|
} else {
|
||||||
throw new ArgumentException($"Invalid scale type: \"{config.Type}\"");
|
throw new ArgumentException($"Invalid scale type: \"{config.Type}\"");
|
||||||
|
@ -11,8 +11,8 @@ file = database.sqlite3
|
|||||||
;log = db.log
|
;log = db.log
|
||||||
|
|
||||||
;[scale.1]
|
;[scale.1]
|
||||||
;type = systec
|
;type = SysTec-IT
|
||||||
;model = IT3000A
|
;model = IT3000
|
||||||
;connection = serial://COM1:9600,8,N,1
|
;connection = serial://COM1:9600,8,N,1
|
||||||
;empty = COM2:RTS:1000
|
;empty = COM2:RTS:1000
|
||||||
;filling = DTR
|
;filling = DTR
|
||||||
@ -22,8 +22,8 @@ file = database.sqlite3
|
|||||||
;log = waage.log
|
;log = waage.log
|
||||||
|
|
||||||
;[scale.B]
|
;[scale.B]
|
||||||
;type = Type
|
;type = Schember-Async
|
||||||
;model = Model
|
;model = L320
|
||||||
;connection = tcp://10.0.0.1:1234
|
;connection = tcp://10.0.0.1:1234
|
||||||
;empty = OUT1:3000
|
;empty = OUT1:3000
|
||||||
;filling = OUT2
|
;filling = OUT2
|
||||||
|
Reference in New Issue
Block a user